Skip to content

Docker Hub Workflow #9203

Docker Hub Workflow

Docker Hub Workflow #9203

Workflow file for this run

name: Docker Hub Workflow
run-name: Docker Hub Workflow
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
branches:
- "main"
env:
DOCKER_USER: 1001:127
SHOULD_PUSH: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'preview') }}
permissions:
contents: read
jobs:
build-and-push-backend:
uses: ./.github/workflows/docker-publish.yml

Check warning on line 24 in .github/workflows/docker-hub.yml

View workflow run for this annotation

GitHub Actions / Docker Hub Workflow

Workflow syntax warning

In .github/workflows/docker-hub.yml (Line: 24, Col: 11): Error from called workflow suitenumerique/docs/.github/workflows/docker-publish.yml@90264c260260c994953d54b4975a50ae69224b0b (Line: 86, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
permissions:
contents: read
secrets: inherit
with:
image_name: lasuite/impress-backend
context: .
file: Dockerfile
target: backend-production
should_push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'preview') }}
docker_user: 1001:127
build-and-push-frontend:
uses: ./.github/workflows/docker-publish.yml

Check warning on line 37 in .github/workflows/docker-hub.yml

View workflow run for this annotation

GitHub Actions / Docker Hub Workflow

Workflow syntax warning

In .github/workflows/docker-hub.yml (Line: 37, Col: 11): Error from called workflow suitenumerique/docs/.github/workflows/docker-publish.yml@90264c260260c994953d54b4975a50ae69224b0b (Line: 86, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
permissions:
contents: read
secrets: inherit
with:
image_name: lasuite/impress-frontend
context: .
file: src/frontend/Dockerfile
target: frontend-production
arm64_reuse_amd64_build_arg: "FRONTEND_IMAGE"
should_push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'preview') }}
docker_user: 1001:127
build-and-push-y-provider:
uses: ./.github/workflows/docker-publish.yml

Check warning on line 51 in .github/workflows/docker-hub.yml

View workflow run for this annotation

GitHub Actions / Docker Hub Workflow

Workflow syntax warning

In .github/workflows/docker-hub.yml (Line: 51, Col: 11): Error from called workflow suitenumerique/docs/.github/workflows/docker-publish.yml@90264c260260c994953d54b4975a50ae69224b0b (Line: 86, Col: 13): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
permissions:
contents: read
secrets: inherit
with:
image_name: lasuite/impress-y-provider
context: .
file: src/frontend/servers/y-provider/Dockerfile
target: y-provider
should_push: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'preview') }}
docker_user: 1001:127
notify-argocd:
needs:
- build-and-push-backend
- build-and-push-frontend
- build-and-push-y-provider
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'preview')
steps:
- uses: numerique-gouv/action-argocd-webhook-notification@main
id: notify
with:
deployment_repo_path: "${{ secrets.DEPLOYMENT_REPO_URL }}"
argocd_webhook_secret: "${{ secrets.ARGOCD_PREPROD_WEBHOOK_SECRET }}"
argocd_url: "${{ vars.ARGOCD_PREPROD_WEBHOOK_URL }}"