This commit is contained in:
parent
eb6f580905
commit
856935a453
30
.gitea/workflows/build_and_publish.yaml
Normal file
30
.gitea/workflows/build_and_publish.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user