Bump actions/checkout from 5 to 6 (#10) #57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Build and Publish' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ ( github.ref == 'refs/heads/main' ) && format('ci-main-{0}', github.sha) || format('ci-main-{0}', github.ref) }} | |
| cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '17 23 * * 0' | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build_and_publish: | |
| name: 'Build and push image' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| name: 'Checkout repository' | |
| with: | |
| lfs: true | |
| fetch-depth: 2 | |
| - name: 'Login to GitHub container registry' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 'Build and push latest image' | |
| run: docker buildx build --tag ghcr.io/b3partners/backup:latest --push . |