Skip to content

Commit

Permalink
MAN-227 - add new action
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Dec 20, 2024
1 parent 9ea6cb0 commit 713727a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/actions/sentry_auth/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Create app version to use it for docker build and deploy pipelines
description: Create app version to use it for docker build and deploy pipelines

outputs:
version:
value: ${{ steps.sentry_auth.outputs.token }}
description: token

runs:
using: composite
steps:
- name: sentry auth
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
id: sentry_auth
shell: bash
run: |
echo $SENTRY_AUTH_TOKEN >> $TOKEN
6 changes: 5 additions & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.app_version.outputs.version }}
sentry: ${{ steps.sentry_auth.outputs.token }}
steps:
- uses: actions/checkout@v4
- id: sentry_auth
name: get auth token
uses: ./.github/actions/sentry_auth
- id: app_version
name: Application version creators
uses: ./.github/actions/create_app_version # WORKFLOW_VERSION
Expand Down Expand Up @@ -78,7 +82,7 @@ jobs:
repository_name: ${{ github.event.repository.name }}
docker_registry: ${{ inputs.docker_registry }}
registry_org: ${{ inputs.registry_org }}
additional_docker_tag: ${{ inputs.additional_docker_tag }}
additional_docker_tag: ${{ steps.sentry_auth.outputs.token }}
push: ${{ inputs.push }}
app_version: ${{ steps.app_version.outputs.version }}

Expand Down

0 comments on commit 713727a

Please sign in to comment.