Add gitea support
Some checks failed
Build Container / Build Docker Container (push) Has been cancelled
Some checks failed
Build Container / Build Docker Container (push) Has been cancelled
This commit is contained in:
33
.gitea/workflows/build-container.yml
Normal file
33
.gitea/workflows/build-container.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Build Container
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Docker Container
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.abzk.fr
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: gitea.abzk.fr/mrzaiko/project-monitor:latest
|
||||
Reference in New Issue
Block a user