chore: release v5.8.14 #378
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Release Docker" | |
| env: | |
| POSTGRES_USER: "unicorn_user" | |
| POSTGRES_PASSWORD: "magical_password" | |
| POSTGRES_DB: "calendso" | |
| DATABASE_HOST: "database:5432" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| # in case manual trigger is needed | |
| workflow_dispatch: | |
| inputs: | |
| RELEASE_TAG: | |
| description: "v{Major}.{Minor}.{Patch}" | |
| jobs: | |
| release-amd64: | |
| name: "Release AMD64" | |
| runs-on: buildjet-4vcpu-ubuntu-2204 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: "Determine tag" | |
| run: 'echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV' | |
| - name: Build and test Docker image | |
| uses: ./.github/actions/docker-build-and-test | |
| with: | |
| platform: "linux/amd64" | |
| platform-suffix: "" | |
| dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| postgres-user: ${{ env.POSTGRES_USER }} | |
| postgres-password: ${{ env.POSTGRES_PASSWORD }} | |
| postgres-db: ${{ env.POSTGRES_DB }} | |
| database-host: ${{ env.DATABASE_HOST }} | |
| push-image: "true" | |
| - name: Notify Slack on Success | |
| if: success() | |
| uses: slackapi/[email protected] | |
| with: | |
| payload: | | |
| { | |
| "text": ":large_green_circle: Workflow *${{ github.workflow }}* (AMD64) succeeded in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} | |
| - name: Notify Slack on Failure | |
| if: failure() | |
| uses: slackapi/[email protected] | |
| with: | |
| payload: | | |
| { | |
| "text": ":red_circle: Workflow *${{ github.workflow }}* (AMD64) failed in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} | |
| release-arm: | |
| name: "Release ARM" | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: "Determine tag" | |
| run: 'echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV' | |
| - name: Build and test Docker image | |
| uses: ./.github/actions/docker-build-and-test | |
| with: | |
| platform: "arm64" | |
| platform-suffix: "-arm" | |
| dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| postgres-user: ${{ env.POSTGRES_USER }} | |
| postgres-password: ${{ env.POSTGRES_PASSWORD }} | |
| postgres-db: ${{ env.POSTGRES_DB }} | |
| database-host: ${{ env.DATABASE_HOST }} | |
| push-image: "true" | |
| - name: Notify Slack on Success | |
| if: success() | |
| uses: slackapi/[email protected] | |
| with: | |
| payload: | | |
| { | |
| "text": ":large_green_circle: Workflow *${{ github.workflow }}* (ARM) succeeded in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} | |
| - name: Notify Slack on Failure | |
| if: failure() | |
| uses: slackapi/[email protected] | |
| with: | |
| payload: | | |
| { | |
| "text": ":red_circle: Workflow *${{ github.workflow }}* (ARM) failed in job *${{ github.job }}*.\nSee: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} |