Skip to content

Commit

Permalink
Fix push to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkarataev committed Oct 30, 2023
1 parent 9bb3f81 commit b6e5ea0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
- master
tags:
- 'v*.*.*'
permissions:
packages: write
jobs:
docker-build-and-publish:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@master
- name: Set env
Expand All @@ -27,11 +31,12 @@ jobs:
else
echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
fi
- name: Publish tag to registry
env:
IMAGE: ${{ github.repository }}
GITHUB_USER: ${{ secrets.GH_USER }}
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ github.token }}
run: |
image=`echo -n "${IMAGE}" | tr 'A-Z' 'a-z'`
echo "${image}:${RELEASE_VERSION}"
Expand Down

0 comments on commit b6e5ea0

Please sign in to comment.