@@ -10,7 +10,49 @@ concurrency:
1010 group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}
1111
1212jobs :
13- socialgouv :
13+ build-app :
14+ environment : build-review-auto
15+ outputs :
16+ tags : ${{ steps.meta.outputs.tags }}
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : ⏬ Checkout code repository
20+ uses : actions/checkout@v4
21+
22+ - name : 📌 Extract metadata (tags, labels) for Docker
23+ id : meta
24+ uses : docker/metadata-action@v5
25+ with :
26+ images : ${{ vars.REGISTRY_URL }}/${{ vars.PROJECT_NAME }}/${{ github.event.repository.name }}/app
27+ tags : |
28+ type=sha,prefix=persist-,format=long,enable=${{
29+ github.ref_name == 'dev' ||
30+ github.ref_name == 'develop' ||
31+ github.ref_name == 'preprod' ||
32+ github.ref_name == 'main' ||
33+ github.ref_name == 'master'
34+ }},priority=840
35+ type=sha,prefix=sha-,format=long,priority=890
36+ type=ref,event=branch,priority=600
37+
38+ - name : 📦 Build and push Docker image for app
39+ uses : socialgouv/workflows/actions/buildkit@v1
40+ with :
41+ context : " ."
42+ dockerfile : " Dockerfile"
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
45+ registry : " ${{ vars.REGISTRY_URL }}"
46+ registry-username : " ${{ secrets.REGISTRY_USERNAME }}"
47+ registry-password : " ${{ secrets.REGISTRY_PASSWORD }}"
48+ buildkit-cert-ca : " ${{ secrets.BUILDKIT_CERT_CA }}"
49+ buildkit-cert : " ${{ secrets.BUILDKIT_CERT }}"
50+ buildkit-cert-key : " ${{ secrets.BUILDKIT_CERT_KEY }}"
51+ buildkit-svc-count : ${{ vars.BUILDKIT_SVC_COUNT }}
52+ buildkit-daemon-address : ${{ vars.BUILDKIT_DAEMON_ADDRESS }}
53+
54+ kontinuous :
55+ needs : [build-app]
1456 name : " 🇫🇷 SocialGouv"
15- uses : socialgouv/workflows/.github/workflows/use-ks-gh-review-auto.yaml@v1
57+ uses : socialgouv/workflows/.github/workflows/use-ks-gh-review-auto-atlas .yaml@v1
1658 secrets : inherit
0 commit comments