ci: add docker build and push action
All checks were successful
Build docker image / build-image (push) Successful in 6m29s
All checks were successful
Build docker image / build-image (push) Successful in 6m29s
This commit is contained in:
parent
fbf4d739f5
commit
710a37dac3
20
.forgejo/workflows/build-image.yml
Normal file
20
.forgejo/workflows/build-image.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Build docker image
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Login to Forgejo docker registry
|
||||
uses: docker/login-action@v3.0.0
|
||||
with:
|
||||
registry: git.pub.solar
|
||||
username: hakkonaut
|
||||
password: ${{ secrets.GIT_AUTH_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5.1.0
|
||||
with:
|
||||
push: true
|
||||
tags: git.pub.solar/pub-solar/obs-portal:latest
|
Loading…
Reference in a new issue