Skip to content

Commit 3ad0353

Browse files
Merge pull request #52 from backstage/update-main-workflow
update github action workflows
2 parents 10963b6 + 4df8567 commit 3ad0353

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
# Build Docker Image
1919
- name: Build Docker image
20-
uses: docker/build-push-action@v1.1.0
20+
uses: docker/build-push-action@v4
2121
with:
2222
path: .
2323
push: false

.github/workflows/main.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,26 @@ jobs:
1010
main:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
1316
- name: Set up QEMU
14-
uses: docker/setup-qemu-action@v1
17+
uses: docker/setup-qemu-action@v2
1518

1619
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v1
20+
uses: docker/setup-buildx-action@v2
1821

1922
- name: Login to DockerHub
20-
uses: docker/login-action@v1
23+
uses: docker/login-action@v2
2124
with:
2225
username: ${{ secrets.DOCKERHUB_USERNAME }}
2326
password: ${{ secrets.DOCKERHUB_TOKEN }} # This is not the actual password of the user, just a token
2427

2528
- name: Build and push
2629
id: docker_build
27-
uses: docker/build-push-action@v2
30+
uses: docker/build-push-action@v4
2831
with:
32+
context: .
2933
platforms: linux/amd64,linux/arm64
3034
push: true
3135
tags: spotify/techdocs:latest

0 commit comments

Comments
 (0)