From 60318ab2031047f7b8251d74b9bc35656353a6f3 Mon Sep 17 00:00:00 2001 From: Alex Palesandro Date: Tue, 24 Oct 2023 20:28:30 +0200 Subject: [PATCH] fix: docker ci --- .github/workflows/release.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2677efb..0c74a5b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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 }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" + git config --global url."https://${{ secrets.MESOSPHERECI_USER_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - name: Login to Docker Hub uses: docker/login-action@v1 with: @@ -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