Skip to content

feat: add practice action button (#592) #439

feat: add practice action button (#592)

feat: add practice action button (#592) #439

name: Docker Build and Push
on:
push:
branches:
- "main"
paths:
- "services/ecran/**"
- "services/juge/**"
jobs:
version:
runs-on: arc-arm64
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
changelog: ${{ steps.tag_version.outputs.changelog }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
build-ecran-migrator:
needs: version
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran-migrator
dockerfile: ./services/ecran/Dockerfile.migrator
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
build-ecran:
needs: [version, build-ecran-migrator]
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran
dockerfile: ./services/ecran/Dockerfile
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
build-ecran-worker:
needs: [version, build-ecran-migrator]
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: ecran-worker
dockerfile: ./services/ecran/Dockerfile.worker
context: ./services/ecran
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
build-juge:
needs: [version, build-ecran-migrator]
uses: ./.github/workflows/docker-build-common.yaml
with:
image_name: juge
dockerfile: ./services/juge/Dockerfile
context: ./services/juge/app
new_tag: ${{ needs.version.outputs.new_tag }}
secrets:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}