From 1f9a7d25e52547e31ded29272df7fe70f3c0e4d9 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:56:15 +0200 Subject: [PATCH 1/8] feat: Release DEVELOP (#50) * force * updated release action --- .github/workflows/release.yml | 5 +++-- force-release | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82277ad..12fa222 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: # Trigger the workflow on push on the main branch push: branches: - - main + - develop paths-ignore: - 'CODEOWNERS' - '**.md' @@ -19,7 +19,8 @@ jobs: - 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: "develop-v{version}" diff --git a/force-release b/force-release index 00d8cfa..7279bd1 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -1802 +2323 From 57335707692ca89872c96029fa84b5b09854d771 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Mon, 30 Sep 2024 23:59:15 +0200 Subject: [PATCH 2/8] fix: Try release develop (#51) * try --- .github/workflows/release.yml | 2 +- force-release | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12fa222..016908f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,5 +22,5 @@ jobs: uses: pagopa/eng-github-actions-iac-template/global/release-action@release-with- # with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag_format: "develop-v{version}" + tag_format: develop-v${version} diff --git a/force-release b/force-release index 7279bd1..9174391 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -2323 +2358 From 38dc23ebea58c00365aeb1f56b4879afdf54a7c3 Mon Sep 17 00:00:00 2001 From: diegoitaliait Date: Tue, 1 Oct 2024 00:03:14 +0200 Subject: [PATCH 3/8] feat: Updated branched where the release should happend --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 016908f..78f8f24 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,4 +23,8 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} tag_format: develop-v${version} + branches: | + - 'main' + - 'uat' + - 'develop' From fe66ec372e9fdbb8bf9b643a3c1628a4f09a5c35 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:04:27 +0200 Subject: [PATCH 4/8] feat: Force dev (#52) * force --- .github/workflows/release.yml | 1 - force-release | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78f8f24..48cff04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,6 @@ jobs: runs-on: ubuntu-22.04 steps: - - name: 🚀 Release with docker action id: release uses: pagopa/eng-github-actions-iac-template/global/release-action@release-with- # diff --git a/force-release b/force-release index 9174391..2f01c85 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -2358 +0003 \ No newline at end of file From d64e434b2876453cea81f3daf43bb7a25d3b136f Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Tue, 1 Oct 2024 00:10:01 +0200 Subject: [PATCH 5/8] feat: force 2 (#53) * new try --- .github/workflows/release.yml | 7 ++----- force-release | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48cff04..b838a44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,9 +21,6 @@ jobs: uses: pagopa/eng-github-actions-iac-template/global/release-action@release-with- # with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag_format: develop-v${version} - branches: | - - 'main' - - 'uat' - - 'develop' + tag_format: 'develop-v${version}' + branches: 'develop' diff --git a/force-release b/force-release index 2f01c85..23c7522 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -0003 \ No newline at end of file +0009 \ No newline at end of file From 469557986cbdcf755eb441e2117150b673f5518d Mon Sep 17 00:00:00 2001 From: diegoitaliait Date: Tue, 1 Oct 2024 15:59:43 +0200 Subject: [PATCH 6/8] updated release pipeline with more tag format --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b838a44..e5ace64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,11 @@ name: Release on: - # Trigger the workflow on push on the main branch push: branches: - develop + - uat + - main paths-ignore: - 'CODEOWNERS' - '**.md' @@ -16,11 +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-action@release-with- # + uses: pagopa/eng-github-actions-iac-template/global/release-action@release-with- with: github_token: ${{ secrets.GITHUB_TOKEN }} - tag_format: 'develop-v${version}' - branches: 'develop' + tag_format: ${{ steps.set-tag-format.outputs.TAG_FORMAT }} + branches: 'develop,uat,main' + # - 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 }} \ No newline at end of file From 6692a76b2c120a6ac6b6ecd448a9fd181a68a313 Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:01:09 +0200 Subject: [PATCH 7/8] feat: f2 (#55) * force --- force-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-release b/force-release index 23c7522..f5624ae 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -0009 \ No newline at end of file +1600 \ No newline at end of file From b463476e06e211da1120b356c2aa72c50cfb4cee Mon Sep 17 00:00:00 2001 From: Diego Lagos <92735530+diegolagospagopa@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:04:41 +0200 Subject: [PATCH 8/8] feat: f3 (#56) * f3 --- .github/workflows/release.yml | 2 +- force-release | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5ace64..a771f96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} tag_format: ${{ steps.set-tag-format.outputs.TAG_FORMAT }} - branches: 'develop,uat,main' + branches: ${{ github.ref_name }} # - name: Trigger Azure DevOps pipeline # if: github.ref == 'refs/heads/develop' diff --git a/force-release b/force-release index f5624ae..cbdd7b9 100644 --- a/force-release +++ b/force-release @@ -1 +1 @@ -1600 \ No newline at end of file +1604 \ No newline at end of file