docker-borgstore/.gitea/workflows/build_and_publish.yaml
paspo 856935a453
All checks were successful
continuous-integration/drone/push Build is passing
build action
2025-04-19 09:37:36 +02:00

31 lines
715 B
YAML

---
name: Container Publish
on:
push:
tags:
- '*'
schedule:
- cron: "0 12 3 * *"
workflow_dispatch:
jobs:
build-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v4
- name: Login to registry
uses: docker/login-action@v3
with:
registry: docker.asperti.com
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and publish
run: |
docker build -t docker.asperti.com/paspo/borgstore:latest --platform linux/amd64 -f Dockerfile .
docker push docker.asperti.com/paspo/borgstore:latest