Skip to content

Commit

Permalink
feat: uat 1 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolagospagopa authored Oct 1, 2024
2 parents cf63bfc + b463476 commit a67a7b6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Release

on:
# Trigger the workflow on push on the main branch
push:
branches:
- develop
- uat
- main
paths-ignore:
- 'CODEOWNERS'
Expand All @@ -16,10 +17,32 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set tag format
id: set-tag-format
run: |
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
echo "TAG_FORMAT=develop-v\${version}" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == "refs/heads/uat" ]]; then
echo "TAG_FORMAT=uat-v\${version}" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "TAG_FORMAT=v\${version}" >> $GITHUB_OUTPUT
fi
- name: 🚀 Release with docker action
id: release
uses: pagopa/eng-github-actions-iac-template/global/release-with-docker@main #
uses: pagopa/eng-github-actions-iac-template/global/release-action@release-with-
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_format: ${{ steps.set-tag-format.outputs.TAG_FORMAT }}
branches: ${{ github.ref_name }}

# - name: Trigger Azure DevOps pipeline
# if: github.ref == 'refs/heads/develop'
# uses: Azure/pipelines@v1
# with:
# azure-devops-project-url: 'https://dev.azure.com/organization/project-name'
# azure-pipeline-name: 'your-pipeline-name'
# azure-devops-token: ${{ secrets.AZURE_DEVOPS_PAT }}
2 changes: 1 addition & 1 deletion force-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1802
1604

0 comments on commit a67a7b6

Please sign in to comment.