Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
farodin91 committed Oct 14, 2023
1 parent 348f1a6 commit 75229c7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-release-tags-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
runs-on: ubuntu-22.04
#if: "!contains(github.event.release.tag_name, '-') && !github.event.release.prerelease"
steps:
- uses: actions/checkout@v4
- name: EXTRACT VERSION
run: |
MINOR_VERSION=$(echo "v0.6.4" | grep -Eo '[0-9]+\.[0-9]+' | head -1)
Expand All @@ -51,13 +52,18 @@ jobs:
# target: ${{ env.PATCH_VERSION }}-${{ env.REVISION }}
# tags: |
# latest
- name: GET DOCKER TOKEN
run: |
curl -u ${{ secrets.DOCKERHUB_USERNAME }}:${{ secrets.DOCKERHUB_TOKEN }} -s -o test.json "https://auth.docker.io/token?service=registry.docker.io&scope=repository:janusgraph/janusgraph:pull,push"
TOKEN=$(cat test.json | jq -r '.token')
echo "DOCKER_SHORT_TOKEN=${TOKEN}" >> $GITHUB_ENV
- name: Run minor tag for docker.io
uses: shrink/actions-docker-registry-tag@v3
with:
registry: index.docker.io
repository: janusgraph/janusgraph
target: ${{ env.PATCH_VERSION }}-${{ env.REVISION }}
token: ${{ secrets.DOCKERHUB_TOKEN }}
token: "${{ env.DOCKER_SHORT_TOKEN }}"
tags: |
${{ env.PATCH_VERSION }}
${{ env.MINOR_VERSION }}
Expand All @@ -68,6 +74,6 @@ jobs:
registry: index.docker.io
repository: janusgraph/janusgraph
target: ${{ env.PATCH_VERSION }}-${{ env.REVISION }}
token: ${{ secrets.DOCKERHUB_TOKEN }}
token: ${{ secrets.DOCKER_SHORT_TOKEN }}
tags: |
latest

0 comments on commit 75229c7

Please sign in to comment.