Skip to content

[MANUAL] - 2. Trigger Release #1

[MANUAL] - 2. Trigger Release

[MANUAL] - 2. Trigger Release #1

Workflow file for this run

name: '[MANUAL] - 2. Trigger Release'
on:
workflow_dispatch:
permissions:
contents: write
jobs:
validate:
name: Validate Release Branch
runs-on: ubuntu-latest
outputs:
version: ${{ steps.validate.outputs.version }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
- id: validate
uses: hawk-digital-environments/hawk-pipeline-actions/validate-release-branch@v1
test-docker-build:
name: Test Docker Build
runs-on: ubuntu-latest
needs: validate
steps:
- name: Checkout release branch
uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Test Docker build
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: false
target: app_prod
platforms: linux/amd64,linux/arm64
tags: digitalenvironments/hawki:release-test
cache-from: type=gha,scope=${{ needs.validate.outputs.version }}
cache-to: type=gha,mode=max,scope=${{ needs.validate.outputs.version }}
release:
name: Merge and Tag Release
runs-on: ubuntu-latest
needs: [ validate, test-docker-build ]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_TOKEN }}
- uses: hawk-digital-environments/hawk-pipeline-actions/trigger-release@v1
with:
version: ${{ needs.validate.outputs.version }}
release-branch: ${{ github.ref_name }}