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 75229c7 commit f3c9687
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/docker-release-tags-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ jobs:
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: "${{ env.DOCKER_SHORT_TOKEN }}"
tags: |
${{ env.PATCH_VERSION }}
${{ env.MINOR_VERSION }}
#- 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: "${{ env.DOCKER_SHORT_TOKEN }}"
# tags: |
# ${{ env.PATCH_VERSION }}
# ${{ env.MINOR_VERSION }}
- name: Run latest tag for docker.io
if: "env.MINOR_VERSION == '${{ env.LATEST_RELEASE }}'"
uses: shrink/actions-docker-registry-tag@v3
with:
registry: index.docker.io
repository: janusgraph/janusgraph
target: ${{ env.PATCH_VERSION }}-${{ env.REVISION }}
token: ${{ secrets.DOCKER_SHORT_TOKEN }}
token: ${{ env.DOCKER_SHORT_TOKEN }}
tags: |
latest
17 changes: 6 additions & 11 deletions .github/workflows/docker-release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,18 @@ jobs:
target: ${{ env.PATCH_VERSION }}-${{ env.REVISION }}
tags: |
latest
- 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 }}
tags: |
${{ env.PATCH_VERSION }}
${{ env.MINOR_VERSION }}
- 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 latest tag for docker.io
if: "env.MINOR_VERSION == '${{ env.LATEST_RELEASE }}'"
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: |
latest

0 comments on commit f3c9687

Please sign in to comment.