Skip to content

Commit b6ae502

Browse files
committed
refactor: update
1 parent e82db47 commit b6ae502

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
jobs:
1010
docker-amd:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
@@ -26,13 +26,14 @@ jobs:
2626
id: meta
2727
run: |
2828
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
29+
TAG="latest"
2930
VERSION=$(node -p "require('./apps/dokploy/package.json').version")
30-
echo "tags=${IMAGE_NAME}:latest,${IMAGE_NAME}:${VERSION}" >> $GITHUB_OUTPUT
3131
elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then
32-
echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT
32+
TAG="canary"
3333
else
34-
echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT
34+
TAG="feature"
3535
fi
36+
echo "tags=${IMAGE_NAME}:${TAG}-amd64" >> $GITHUB_OUTPUT
3637
3738
- name: Prepare env file
3839
run: |
@@ -65,13 +66,14 @@ jobs:
6566
id: meta
6667
run: |
6768
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
69+
TAG="latest"
6870
VERSION=$(node -p "require('./apps/dokploy/package.json').version")
69-
echo "tags=${IMAGE_NAME}:latest,${IMAGE_NAME}:${VERSION}" >> $GITHUB_OUTPUT
7071
elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then
71-
echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT
72+
TAG="canary"
7273
else
73-
echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT
74+
TAG="feature"
7475
fi
76+
echo "tags=${IMAGE_NAME}:${TAG}-arm64" >> $GITHUB_OUTPUT
7577
7678
- name: Prepare env file
7779
run: |

0 commit comments

Comments
 (0)