Skip to content

Commit 17f5781

Browse files
committed
fixed dockerfile workflow
1 parent 02ac37d commit 17f5781

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/docker.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
contents: read
1616
steps:
1717
- name: Check out the repo
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v3
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v2
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v2
1923
# If we want to publish an image of PhASAR to the official docker hub we
2024
# can just use the following code and set the corresponding secrets.
2125
# - name: Log in to Docker Hub
@@ -25,21 +29,21 @@ jobs:
2529
# password: ${{ secrets.DOCKER_TOKEN }}
2630

2731
- name: Log in to the Container registry
28-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
32+
uses: docker/login-action@v2
2933
with:
3034
registry: ghcr.io
3135
username: ${{ github.actor }}
3236
password: ${{ secrets.GITHUB_TOKEN }}
3337

3438
- name: Extract metadata (tags, labels) for Docker
3539
id: meta
36-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
40+
uses: docker/metadata-action@v4
3741
with:
3842
images: ghcr.io/${{ github.repository }}
3943
# here we could add a second image for the official docker registry
4044
# sse/phasar
4145
- name: Build and push Docker images
42-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
46+
uses: docker/build-push-action@v3
4347
with:
4448
context: .
4549
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)