Skip to content

Commit

Permalink
fix: docker ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Palesandro committed Oct 24, 2023
1 parent 9bf0610 commit 60318ab
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ jobs:
RELEASE_VERSION: ${{ steps.set_version.outputs.RELEASE_VERSION }}
steps:
- name: Set RELEASE_VERSION from tag
id: set_version
if: github.event_name == 'push'
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Set RELEASE_VERSION from workflow input
id: set_version
if: github.event_name == 'workflow_dispatch'
run: echo "RELEASE_VERSION=${{ github.event.inputs.releaseVersion }}" >> $GITHUB_OUTPUT
run: echo "RELEASE_VERSION=${{ github.event.inputs.releaseVersion }}" >> $GITHUB_ENV

- name: Output RELEASE_VERSION
id: set_version
run: echo "RELEASE_VERSION=${{ env.RELEASE_VERSION }}" >> $GITHUB_OUTPUT


publish-image:
Expand All @@ -36,7 +38,7 @@ jobs:
uses: asdf-vm/actions/setup@v1
- name: Granting private modules access
run: |
git config --global url."https://${{ secrets.CI_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
git config --global url."https://${{ secrets.MESOSPHERECI_USER_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -45,7 +47,7 @@ jobs:
- name: Build container image
run: make container
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MESOSPHERECI_USER_TOKEN }}
TAG: ${{ needs.set-env.outputs.RELEASE_VERSION }}
- name: Push container image
run: make push-image
Expand Down

0 comments on commit 60318ab

Please sign in to comment.