Skip to content

Commit

Permalink
fix docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Sep 27, 2023
1 parent 1bae71c commit f08f563
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release-docker-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:

- name: Set Current Version
run: |
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV
echo "CURRENT_VERSION=${CURRENT_VERSION}"
STEEDOS_VERSION=$(node -p 'require("./lerna.json").version')
echo "CURRENT_VERSION=${STEEDOS_VERSION}" >> $GITHUB_ENV
echo "CURRENT_VERSION=${STEEDOS_VERSION}"
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
Expand All @@ -38,16 +38,24 @@ jobs:
images: |
steedos/steedos-enterprise
tags: |
type=semver,pattern={{version}},value=${{ env.CURRENT_VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.CURRENT_VERSION }}
type=semver,pattern={{major}},value=${{ env.CURRENT_VERSION }}
type=semver,pattern={{version}},value=${{ env.STEEDOS_VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.STEEDOS_VERSION }}
type=semver,pattern={{major}},value=${{ env.STEEDOS_VERSION }}
- uses: docker/login-action@v1
name: Login Docker Hub
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Replace Version ~2.5 to Tag
uses: jacobtomlinson/gha-find-replace@v2
with:
include: ./deploy/enterprise/fs/app/platform/package.json
find: "~2.5"
replace: ${env.{STEEDOS_VERSION}}
regex: false

- name: Build and push docker
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit f08f563

Please sign in to comment.