Skip to content

Commit 329723b

Browse files
committed
Add "build and push ci-alpine-amd64:latest" to push.yml
Signed-off-by: Ganyu (Bruce) Xu <[email protected]>
1 parent c006d92 commit 329723b

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
steps:
3939
- name: Checkout code
4040
uses: actions/checkout@v4
41-
- name: Build image
41+
- name: Build ci-alpine-amd64:latest, do not push
4242
uses: docker/build-push-action@v6
4343
with:
4444
push: false

.github/workflows/push.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ on:
55
branches: 'main'
66

77
jobs:
8+
alpine-amd64:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Login to Docker Hub
14+
if: github.ref_name == 'main'
15+
uses: docker/login-action@v3
16+
with:
17+
username: ${{ vars.DOCKERHUB_USERNAME }}
18+
password: ${{ secrets.DOCKERHUB_TOKEN }}
19+
- name: Build and push ci-alpine-amd64:latest
20+
uses: docker/build-push-action@v6
21+
with:
22+
push: true
23+
build-args: ARCH=amd64
24+
tags: openquantumsafe/ci-alpine-amd64:latest
25+
context: alpine
26+
827
ubuntu-arm64:
928
strategy:
1029
matrix:

0 commit comments

Comments
 (0)