Skip to content

Commit 513eb34

Browse files
committed
trying multi-platform images again 🤞
1 parent 0adc72a commit 513eb34

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/push-to-dockerhub.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ jobs:
5454
run: |
5555
gh release create v${TAG}
5656
57+
- name: Login to Docker Hub
58+
uses: docker/login-action@v2
59+
with:
60+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
61+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
62+
63+
# https://github.com/docker/metadata-action
5764
- name: Docker meta
5865
id: meta
59-
# https://github.com/docker/metadata-action
60-
uses: docker/metadata-action@v3
66+
uses: docker/metadata-action@v4
6167
with:
6268
images: ${{ env.DOCKER_REPO_NAME }}
6369
tags: |
@@ -67,17 +73,12 @@ jobs:
6773
type=raw,${{ env.WP_VERSION }}-${{ env.TAG }}
6874
type=raw,${{ env.WP_VERSION }}
6975
70-
- name: Login to Docker Hub
71-
uses: docker/login-action@v1
72-
with:
73-
username: ${{ secrets.DOCKER_HUB_USERNAME }}
74-
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
75-
76+
# https://github.com/docker/build-push-action
7677
- name: Build and push
77-
uses: docker/build-push-action@v2
78+
uses: docker/build-push-action@v3
7879
with:
7980
context: .
8081
push: true
81-
# platforms: linux/amd64,linux/arm64
82+
platforms: linux/amd64,linux/arm64,linux/arm/v7
8283
tags: ${{ steps.meta.outputs.tags }}
8384
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)