Skip to content

Commit 12d7545

Browse files
committed
Deprecate arm7 builds, Bump versions on docker build workflow. Fix platform env not being set as it's not available in the same step.
1 parent 1c729ee commit 12d7545

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/docker-build.yml

Lines changed: 10 additions & 9 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]
@@ -43,29 +43,30 @@ jobs:
4343
echo "vendor=${{ github.repository_owner }}" >> $GITHUB_ENV
4444
echo "url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY,,}/blob/master/README.md" >> $GITHUB_ENV
4545
echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
46-
echo "platform=${ARCHITECTURE//-/\/}" >> $GITHUB_ENV
4746
echo "cache=${GITHUB_REPOSITORY,,}:${{ github.ref_name }}-cache-${{ matrix.architecture }}${{ github.event.inputs.tag }}" >> $GITHUB_ENV
4847
echo "tag=${GITHUB_REPOSITORY,,}:${{ github.ref_name }}-${GITHUB_SHA:0:7}-${GITHUB_RUN_NUMBER}-${{ matrix.architecture }}${{ github.event.inputs.tag }}" >> $GITHUB_ENV
4948
echo "release=${{ github.event.release.target_commitish }}" >> $GITHUB_ENV
50-
49+
- name: Set platform
50+
run: |
51+
echo "platform=$(echo $ARCHITECTURE | sed 's/-/\//g')" >> $GITHUB_ENV
5152
- name: Set up QEMU
52-
uses: docker/setup-qemu-action@v2.1.0
53+
uses: docker/setup-qemu-action@v3.6.0
5354

5455
- name: Set up Docker Buildx
5556
id: buildx
56-
uses: docker/setup-buildx-action@v2.2.1
57+
uses: docker/setup-buildx-action@v3.10.0
5758
with:
5859
driver-opts: image=moby/buildkit:v0.10.5
5960

6061
- name: Login to GitHub Container Registry
61-
uses: docker/login-action@v2.1.0
62+
uses: docker/login-action@v3.4.0
6263
with:
6364
registry: ghcr.io
6465
username: ${{ github.repository_owner }}
6566
password: ${{ secrets.GH_PAT }}
6667

6768
- name: build&push
68-
uses: docker/build-push-action@v3.2.0
69+
uses: docker/build-push-action@v6.15.0
6970
with:
7071
push: ${{ github.event_name != 'pull_request' }}
7172
platforms: ${{ env.platform }}
@@ -95,11 +96,11 @@ jobs:
9596
needs: [build-and-push-it-to-the-limit]
9697
steps:
9798
- name: Checkout
98-
uses: actions/checkout@v3.1.0
99+
uses: actions/checkout@v4.2.2
99100

100101
- name: Login to GitHub Container Registry
101102
if: matrix.registry == 'ghcr.io'
102-
uses: docker/login-action@v2.1.0
103+
uses: docker/login-action@v3.4.0
103104
with:
104105
registry: ghcr.io
105106
username: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)