This commit is contained in:
26
.gitea/workflows/docker.yml
Normal file
26
.gitea/workflows/docker.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Docker Build and Push
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to Docker registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.nice.nz
|
||||
username: hads
|
||||
password: ${{ secrets.PAT }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: git.nice.nz/hads/postgres-backup:latest
|
||||
Reference in New Issue
Block a user