webmin-samba-docker/.gitea/workflows/docker.yml
schreifuchs 764cc31532
Some checks failed
Docker / publish (push) Failing after 12s
update workflow
2025-01-29 21:25:01 +01:00

34 lines
1.0 KiB
YAML

name: Docker
on:
push:
branches: [ "main" ]
schedule:
- cron: '@weekly'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- run: echo "${{ secrets.REGISTRY_TOKEN }}"
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "git.schreifuchs.ch/schreifuchs/webmin-samba-docker:${{ steps.date.outputs.date }},git.schreifuchs.ch/schreifuchs/webmin-samba-docker:latest"