Skip to content

Commit c5d01f2

Browse files
committed
Remove arm/v6 and start building multiple arch's
1 parent c3b0ec5 commit c5d01f2

File tree

3 files changed

+52
-84
lines changed

3 files changed

+52
-84
lines changed

.github/workflows/ci-matrix.yml

Lines changed: 49 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
name: ci-matrix
22

33
on:
4-
push:
5-
branches:
6-
- "master"
7-
tags:
8-
- "v*.*.*"
4+
workflow_run:
5+
workflows: [Docker Image CI]
6+
branches: [master]
7+
types:
8+
- completed
99

1010
env:
1111
REGISTRY_IMAGE: justdanz/nginx-http3-quictls
1212

1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1617
strategy:
1718
fail-fast: false
1819
matrix:
1920
platform:
2021
- linux/amd64
21-
- linux/arm/v6
2222
- linux/arm/v7
2323
- linux/arm64
2424
- linux/ppc64le
@@ -39,12 +39,12 @@ jobs:
3939
-
4040
name: Set up Docker Buildx
4141
uses: docker/setup-buildx-action@v2
42-
# -
43-
# name: Login to Docker Hub
44-
# uses: docker/login-action@v2
45-
# with:
46-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
47-
# password: ${{ secrets.DOCKERHUB_TOKEN }}
42+
-
43+
name: Login to Docker Hub
44+
uses: docker/login-action@v2
45+
with:
46+
username: ${{ secrets.DOCKERHUB_USERNAME }}
47+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4848
-
4949
name: Build and push by digest
5050
id: build
@@ -69,39 +69,40 @@ jobs:
6969
if-no-files-found: error
7070
retention-days: 1
7171

72-
# merge:
73-
# runs-on: ubuntu-latest
74-
# needs:
75-
# - build
76-
# steps:
77-
# -
78-
# name: Download digests
79-
# uses: actions/download-artifact@v3
80-
# with:
81-
# name: digests
82-
# path: /tmp/digests
83-
# -
84-
# name: Set up Docker Buildx
85-
# uses: docker/setup-buildx-action@v2
86-
# -
87-
# name: Docker meta
88-
# id: meta
89-
# uses: docker/metadata-action@v4
90-
# with:
91-
# images: ${{ env.REGISTRY_IMAGE }}
92-
# -
93-
# name: Login to Docker Hub
94-
# uses: docker/login-action@v2
95-
# with:
96-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
97-
# password: ${{ secrets.DOCKERHUB_TOKEN }}
98-
# -
99-
# name: Create manifest list and push
100-
# working-directory: /tmp/digests
101-
# run: |
102-
# docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
103-
# $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
104-
# -
105-
# name: Inspect image
106-
# run: |
107-
# docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
72+
merge:
73+
runs-on: ubuntu-latest
74+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
75+
needs:
76+
- build
77+
steps:
78+
-
79+
name: Download digests
80+
uses: actions/download-artifact@v3
81+
with:
82+
name: digests
83+
path: /tmp/digests
84+
-
85+
name: Set up Docker Buildx
86+
uses: docker/setup-buildx-action@v2
87+
-
88+
name: Docker meta
89+
id: meta
90+
uses: docker/metadata-action@v4
91+
with:
92+
images: ${{ env.REGISTRY_IMAGE }}
93+
-
94+
name: Login to Docker Hub
95+
uses: docker/login-action@v2
96+
with:
97+
username: ${{ secrets.DOCKERHUB_USERNAME }}
98+
password: ${{ secrets.DOCKERHUB_TOKEN }}
99+
-
100+
name: Create manifest list and push
101+
working-directory: /tmp/digests
102+
run: |
103+
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
104+
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
105+
-
106+
name: Inspect image
107+
run: |
108+
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}

.github/workflows/dockerimage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Docker Image CI
22

33
on:
4+
45
push:
56
branches: [ master ]
7+
tags:
8+
- "v*.*.*"
69
pull_request:
710

811
jobs:

.github/workflows/psuh-to-docker-hub.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)