This repository was archived by the owner on Oct 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
- name : Build docker image
1
+ name : Build and publish Docker image
2
2
3
- on : workflow_dispatch
3
+ on :
4
+ release :
5
+ types : [published]
4
6
5
7
jobs :
6
8
docker :
7
9
runs-on : ubuntu-latest
8
10
steps :
11
+ - name : Set release version
12
+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
13
+
9
14
- name : Set up QEMU
10
- uses : docker/setup-qemu-action@v2
15
+ uses : docker/setup-qemu-action@v3
11
16
12
17
- name : Set up Docker Buildx
13
- uses : docker/setup-buildx-action@v2
18
+ uses : docker/setup-buildx-action@v3
14
19
15
20
- name : Login to Docker Hub
16
- uses : docker/login-action@v2
21
+ uses : docker/login-action@v3
17
22
with :
18
- username : ${{ secrets.DOCKERHUB_USERNAME }}
19
- password : ${{ secrets.DOCKERHUB_TOKEN }}
23
+ username : ${{secrets.DOCKERHUB_USERNAME}}
24
+ password : ${{secrets.DOCKERHUB_TOKEN}}
20
25
21
26
- name : Build and push
22
- uses : docker/build-push-action@v4
27
+ uses : docker/build-push-action@v5
23
28
with :
24
29
platforms : linux/amd64,linux/arm64
25
30
push : true
26
- tags : stackupwallet/stackup-bundler:latest
31
+ tags : |
32
+ stackupwallet/stackup-bundler:latest
33
+ stackupwallet/stackup-bundler:${{env.RELEASE_VERSION}}
You can’t perform that action at this time.
0 commit comments