Skip to content

Commit e308f00

Browse files
committed
remove more armv7 stuff and add env steps
1 parent da70c72 commit e308f00

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
29-
architecture: [linux-arm-v7,linux-arm64,linux-amd64]
29+
architecture: [linux-amd64,linux-arm64]
3030
steps:
3131
- name: checkout
3232
uses: actions/[email protected]
@@ -106,21 +106,27 @@ jobs:
106106
username: ${{ github.repository_owner }}
107107
password: ${{ secrets.GH_PAT }}
108108

109-
- name: Create manifests
109+
- name: Set Image and Tag Env
110110
env:
111111
DOCKER_CLI_EXPERIMENTAL: enabled
112112
run: |
113113
IMAGE=${{ matrix.registry }}/${GITHUB_REPOSITORY,,}
114114
TAG=${{ github.ref_name }}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}
115+
- name: Set Source Env
116+
run: |
115117
SOURCE=${IMAGE}:${TAG}
118+
- name: Create manifests
119+
env:
120+
DOCKER_CLI_EXPERIMENTAL: enabled
121+
run: |
116122
[[ -f linux-amd64.Dockerfile ]] && AMD64=${SOURCE}-linux-amd64${{ github.event.inputs.tag }}
117123
[[ -f linux-arm64.Dockerfile ]] && ARM64=${SOURCE}-linux-arm64${{ github.event.inputs.tag }}
118-
[[ -f linux-arm-v7.Dockerfile ]] && ARMV7=${SOURCE}-linux-arm-v7${{ github.event.inputs.tag }}
119-
docker manifest create ${IMAGE}:${TAG}${{ github.event.inputs.tag }} ${AMD64} ${ARM64} ${ARMV7}
124+
docker manifest create ${IMAGE}:${TAG}${{ github.event.inputs.tag }} ${AMD64} ${ARM64}
120125
docker manifest push ${IMAGE}:${TAG}${{ github.event.inputs.tag }}
121126
TAG=${{ github.ref_name }}${{ github.event.inputs.tag }}
122-
docker manifest create ${IMAGE}:${TAG} ${AMD64} ${ARM64} ${ARMV7}
127+
docker manifest create ${IMAGE}:${TAG} ${AMD64} ${ARM64}
123128
docker manifest push ${IMAGE}:${TAG}
129+
124130
- name: Latest manifest
125131
if: github.event.release.target_commitish == 'master' || github.event.inputs.branch == 'master'
126132
env:
@@ -131,6 +137,5 @@ jobs:
131137
SOURCE=${IMAGE}:${TAG}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}
132138
[[ -f linux-amd64.Dockerfile ]] && AMD64=${SOURCE}-linux-amd64
133139
[[ -f linux-arm64.Dockerfile ]] && ARM64=${SOURCE}-linux-arm64
134-
[[ -f linux-arm-v7.Dockerfile ]] && ARMV7=${SOURCE}-linux-arm-v7
135-
docker manifest create ${IMAGE}:latest ${AMD64} ${ARM64} ${ARMV7}
140+
docker manifest create ${IMAGE}:latest ${AMD64} ${ARM64}
136141
docker manifest push ${IMAGE}:latest

0 commit comments

Comments
 (0)