-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.05 KB
/
build_containers.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build Containers Workflow Template
on:
workflow_call:
inputs:
tag:
required: true
type: string
secrets:
DOCKER_LOGIN_USERNAME:
required: true
DOCKER_LOGIN_TOKEN:
required: true
jobs:
build-container:
name: Build adcirc-ci-container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
run: echo ${{ secrets.DOCKER_LOGIN_TOKEN }} | docker login -u ${{ secrets.DOCKER_LOGIN_USERNAME }} --password-stdin
- name: Build and push adcirc-ci-container Docker image
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
with:
context: .
file: Dockerfile
push: true
platforms: linux/amd64
tags: zcobell/adcirc-ci-container:${{ inputs.tag }}
labels: org.adcirc.adcirc-ci-container