Skip to content

Commit a482faa

Browse files
authoredFeb 19, 2023
Fix docker push actions (#299)
1 parent f223f2c commit a482faa

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
 

‎.github/workflows/build-push.yaml

+12-4
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,31 @@ name: Build and push to Docker Hub
22

33
on:
44
push:
5-
branches: ['main']
5+
branches:
6+
- 'main'
67

78
jobs:
8-
9-
build-and-push-image:
10-
name: Build and push to Docker Hub
9+
docker:
1110
runs-on: ubuntu-latest
1211
steps:
1312
- name: Checkout
1413
uses: actions/checkout@v3
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v2
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v2
20+
1521
- name: Login to Docker Hub
1622
uses: docker/login-action@v2
1723
with:
1824
username: ${{ secrets.DOCKERHUB_USERNAME }}
1925
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
2027
- name: Set up Docker Buildx
2128
uses: docker/setup-buildx-action@v2
29+
2230
- name: Build and push
2331
uses: docker/build-push-action@v4
2432
with:

0 commit comments

Comments
 (0)
Please sign in to comment.