Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '')
Expand All @@ -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
Expand All @@ -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 }}