Skip to content

Commit 1af560f

Browse files
committed
1 parent 282b024 commit 1af560f

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12+
- uses: docker/setup-qemu-action@v3
13+
- uses: docker/setup-buildx-action@v3
14+
- uses: docker/login-action@v3
15+
with:
16+
username: ${{ secrets.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
1218
- id: meta
1319
uses: docker/metadata-action@v5
1420
with:
@@ -19,12 +25,6 @@ jobs:
1925
type=raw,value=all
2026
type=semver,pattern={{version}}-all
2127
type=semver,pattern={{major}}.{{minor}}-all
22-
- uses: docker/setup-qemu-action@v3
23-
- uses: docker/setup-buildx-action@v3
24-
- uses: docker/login-action@v3
25-
with:
26-
username: ${{ secrets.DOCKERHUB_USERNAME }}
27-
password: ${{ secrets.DOCKERHUB_TOKEN }}
2828
- name: :all
2929
uses: docker/build-push-action@v6
3030
with:
@@ -34,15 +34,22 @@ jobs:
3434
tags: ${{ steps.meta.outputs.tags }}
3535
build-args: |
3636
GOCRON2_VERSION=1.6.5
37+
- id: meta_server
38+
uses: docker/metadata-action@v5
39+
with:
40+
images: |
41+
sstc/gocron2
42+
tags: |
43+
type=raw,value=server
44+
type=semver,pattern={{version}}-server
45+
type=semver,pattern={{major}}.{{minor}}-server
3746
- name: :server
3847
uses: docker/build-push-action@v6
3948
with:
4049
push: true
4150
platforms: linux/amd64,linux/arm64
4251
file: ./server/Dockerfile
43-
tags: |
44-
sstc/gocron2:server
45-
sstc/gocron2:1.6.5-server
52+
tags: ${{ steps.meta_server.outputs.tags }}
4653
build-args: |
4754
GOCRON2_VERSION=1.6.5
4855
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)