yavsc/.github/workflows/docker-publish-backend.yml
dependabot[bot] 50fbb62f92
Bump actions/checkout from 6 to 7 in the all-actions group
Bumps the all-actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-21 16:04:00 +00:00

41 lines
1.1 KiB
YAML

name: Build and Push Yavsc Production Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
production-deploy:
runs-on: ubuntu-latest
steps:
# 1. Récupération du code
- name: Check out the repo
uses: actions/checkout@v7
# 2. Configuration du moteur de Buildx pour les builds multi-plateformes
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
# 3. Connexion sécurisée à Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Test
run: dotnet test --no-build --verbosity normal
# 4. Build et Push de l'image de production finale
- name: Build and push production image
uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile.backend
push: true
tags: |
pazof/yavsc:latest
pazof/yavsc:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max