From b6ae502b925b8203e42084e827296bd84f0a4236 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sun, 19 Jan 2025 02:38:38 -0600 Subject: [PATCH] refactor: update --- .github/workflows/docker-build.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 7638a277..c25206fe 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -8,7 +8,7 @@ env: jobs: docker-amd: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -26,13 +26,14 @@ jobs: id: meta run: | if [ "${{ github.ref }}" = "refs/heads/main" ]; then + TAG="latest" VERSION=$(node -p "require('./apps/dokploy/package.json').version") - echo "tags=${IMAGE_NAME}:latest,${IMAGE_NAME}:${VERSION}" >> $GITHUB_OUTPUT elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then - echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT + TAG="canary" else - echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT + TAG="feature" fi + echo "tags=${IMAGE_NAME}:${TAG}-amd64" >> $GITHUB_OUTPUT - name: Prepare env file run: | @@ -65,13 +66,14 @@ jobs: id: meta run: | if [ "${{ github.ref }}" = "refs/heads/main" ]; then + TAG="latest" VERSION=$(node -p "require('./apps/dokploy/package.json').version") - echo "tags=${IMAGE_NAME}:latest,${IMAGE_NAME}:${VERSION}" >> $GITHUB_OUTPUT elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then - echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT + TAG="canary" else - echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT + TAG="feature" fi + echo "tags=${IMAGE_NAME}:${TAG}-arm64" >> $GITHUB_OUTPUT - name: Prepare env file run: |