refactor: update

This commit is contained in:
Mauricio Siu
2025-01-19 02:38:38 -06:00
parent e82db47ec4
commit b6ae502b92

View File

@@ -8,7 +8,7 @@ env:
jobs: jobs:
docker-amd: docker-amd:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -26,13 +26,14 @@ jobs:
id: meta id: meta
run: | run: |
if [ "${{ github.ref }}" = "refs/heads/main" ]; then if [ "${{ github.ref }}" = "refs/heads/main" ]; then
TAG="latest"
VERSION=$(node -p "require('./apps/dokploy/package.json').version") 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 elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then
echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT TAG="canary"
else else
echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT TAG="feature"
fi fi
echo "tags=${IMAGE_NAME}:${TAG}-amd64" >> $GITHUB_OUTPUT
- name: Prepare env file - name: Prepare env file
run: | run: |
@@ -65,13 +66,14 @@ jobs:
id: meta id: meta
run: | run: |
if [ "${{ github.ref }}" = "refs/heads/main" ]; then if [ "${{ github.ref }}" = "refs/heads/main" ]; then
TAG="latest"
VERSION=$(node -p "require('./apps/dokploy/package.json').version") 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 elif [ "${{ github.ref }}" = "refs/heads/canary" ]; then
echo "tags=${IMAGE_NAME}:canary" >> $GITHUB_OUTPUT TAG="canary"
else else
echo "tags=${IMAGE_NAME}:feature" >> $GITHUB_OUTPUT TAG="feature"
fi fi
echo "tags=${IMAGE_NAME}:${TAG}-arm64" >> $GITHUB_OUTPUT
- name: Prepare env file - name: Prepare env file
run: | run: |