38 lines
831 B
YAML
38 lines
831 B
YAML
---
|
|
name: docker
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 5 1 * *'
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
jobs:
|
|
docker:
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: git.bbee.fr
|
|
username: ${{ vars.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_API_TOKEN }}
|
|
|
|
- uses: docker/build-push-action@v6
|
|
env:
|
|
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
push: true
|
|
provenance: false
|
|
sbom: false
|
|
tags: git.bbee.fr/${{ github.repository }}:latest
|