Skip to content

Commit

Permalink
Update image-release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
davi17g committed Aug 12, 2024
1 parent e80c5c8 commit 14f7a9e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/image-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
ref: "release-test"
- name: Get Metadata
run: |
echo "VERSION=$(cat VERSION | cut -c 2-)" >> $GITHUB_ENV
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
echo "TAG=$(cat VERSION | cut -c 2-)" >> $GITHUB_ENV
echo "ISO8601=$(LC_TIME=en_US.UTF-8 date "+%Y-%m-%dT%H:%M:%S%z")" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -37,10 +38,12 @@ jobs:
uses: docker/bake-action@v4
env:
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: golib-release-proccess
GIT_BRANCH: ${{ github.ref }}
LATEST: false
TAG: ${{ github.ref_name }}
TAG: ${{env.TAG}}
VERSION: ${{env.VERSION}}
CONTEXT: ${{ github.workspace }}
ISO8601: ${{env.ISO8601}}
with:
workdir: ${{ github.workspace }}
files: ${{ github.workspace }}/build/docker-build/docker-bake.hcl
Expand All @@ -49,13 +52,13 @@ jobs:
env:
ARTIFACTORY_CONTAINER_DEV: ${{ vars.ARTIFACTORY_CONTAINER_DEV }}
ARTIFACTORY_CONTAINER_PROD: ${{ vars.ARTIFACTORY_CONTAINER_PROD }}
VERSION: ${{env.VERSION}}
TAG: ${{env.TAG}}
run: |
jfrog rt docker-promote aerospike-backup-service \
"$ARTIFACTORY_CONTAINER_DEV" \
"ecosystem-container-stage-local" \
--source-tag "$VERSION" \
--target-tag "$VERSION" \
--source-tag "$TAG" \
--target-tag "$TAG" \
--user "${{ secrets.ARTIFACTORY_USER }}" \
--password "${{ secrets.ARTIFACTORY_TOKEN }}" \
--url "${{ secrets.ARTIFACTORY_PROMOTE_URL }}" \
Expand All @@ -64,12 +67,12 @@ jobs:
env:
ARTIFACTORY_CONTAINER_DEV: ${{ vars.ARTIFACTORY_CONTAINER_DEV }}
ARTIFACTORY_CONTAINER_PROD: ${{ vars.ARTIFACTORY_CONTAINER_PROD }}
VERSION: ${{env.VERSION}}
TAG: ${{env.TAG}}
run: |
jfrog rt docker-promote aerospike-backup-service \
"$ARTIFACTORY_CONTAINER_DEV" \
"ecosystem-container-stage-local" \
--source-tag "$VERSION" \
--source-tag "$TAG" \
--target-tag "latest" \
--user "${{ secrets.ARTIFACTORY_USER }}" \
--password "${{ secrets.ARTIFACTORY_TOKEN }}" \
Expand Down

0 comments on commit 14f7a9e

Please sign in to comment.