This commit is contained in:
26
.gitea/workflows/docker.yaml
Normal file
26
.gitea/workflows/docker.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.umbra.mom \
|
||||
-u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t gitea.umbra.mom/jay/pub-quiz:latest .
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
docker push gitea.umbra.mom/jay/pub-quiz:latest
|
||||
Reference in New Issue
Block a user