diff --git a/.github/workflows/release-docker-image.yml b/.github/workflows/release-docker-image.yml index 9a1dad3..80bda1e 100644 --- a/.github/workflows/release-docker-image.yml +++ b/.github/workflows/release-docker-image.yml @@ -59,12 +59,6 @@ jobs: console.log(`Published draft release for tag ${tag}`); - - name: Inject secret store credentials - uses: leanix/secrets-action@master - if: (steps.tag-action.outputs.tag != '') - with: - secret-store-credentials: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }} - - name: Checkout uses: actions/checkout@v3 if: (steps.tag-action.outputs.tag != '') @@ -87,15 +81,15 @@ jobs: uses: azure/docker-login@v1 if: (steps.tag-action.outputs.tag != '') with: - login-server: ${{ env.ACR_PUBLIC_LOGIN }} - username: ${{ env.ACR_PUBLIC_USERNAME }} - password: ${{ env.ACR_PUBLIC_PASSWORD }} + login-server: ${{ secrets.ACR_PUBLIC_LOGIN }} + username: ${{ secrets.ACR_PUBLIC_USERNAME }} + password: ${{ secrets.ACR_PUBLIC_PASSWORD }} - name: Setup ssh uses: webfactory/ssh-agent@v0.4.1 if: (steps.tag-action.outputs.tag != '') with: - ssh-private-key: ${{ env.CI_GITHUB_SSH_PRIVATE_KEY }} + ssh-private-key: ${{ secrets.CI_GITHUB_SSH_PRIVATE_KEY }} ssh-auth-sock: ${{ env.SSH_AUTH_SOCK }} - name: Build and push image to Azure public registry @@ -104,6 +98,6 @@ jobs: with: context: ./ file: Dockerfile - tags: ${{ env.ACR_PUBLIC_LOGIN }}/vsm-gitlab-broker:${{ steps.tag-action.outputs.tag }}, ${{ env.ACR_PUBLIC_LOGIN }}/vsm-gitlab-broker:latest + tags: ${{ secrets.ACR_PUBLIC_LOGIN }}/vsm-gitlab-broker:${{ steps.tag-action.outputs.tag }}, ${{ secrets.ACR_PUBLIC_LOGIN }}/vsm-gitlab-broker:latest push: true ssh: default=${{ env.SSH_AUTH_SOCK }} \ No newline at end of file