Skip to content

Commit

Permalink
run bash for docker push (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustamGimadiev authored Oct 13, 2021
1 parent 171a99b commit e813a90
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ jobs:
CI: false
JAVA_OPTS: "-Xms2048m -Xmx2048m"
run: ./gradlew clean jibDockerBuild ${{ github.event.inputs.buildOptions }} --no-daemon --image odd-platform -PoddGHPRepositoryUsername=github-actions -PoddGHPRepositoryPassword=${{ secrets.GITHUB_TOKEN }} -Pversion=${{ steps.get-version.outputs.version }}
- name: Retag image in GHCR
uses: kindaninja/[email protected]
if: ${{ github.event.action == 'published' }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: opendatadiscovery/odd-platform
image: odd-platform
current_tag: ${{ steps.get-version.outputs.version }}
new_tag: ${{ steps.get-version.outputs.version }}
username: github
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Retag image in GHCR
if: ${{ github.event.action == 'published' }}
run: |
docker tag odd-platform:${{ steps.get-version.outputs.version }} ghcr.io/opendatadiscovery/odd-platform:${{ steps.get-version.outputs.version }}
docker push ghcr.io/opendatadiscovery/odd-platform:${{ steps.get-version.outputs.version }}

0 comments on commit e813a90

Please sign in to comment.