Added build yaml and versioning change for requirements.txt
This commit is contained in:
parent
ae5b4d5c2e
commit
8fc221d649
39
.gitea/workflows/build.yaml
Normal file
39
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
# container:
|
||||||
|
|
||||||
|
# image: catthehacker/ubuntu:act-latest
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Install Docker
|
||||||
|
run: curl -fsSL https://get.docker.com | sh
|
||||||
|
|
||||||
|
- name: Log in to Gitea Registry
|
||||||
|
run: echo "${{ secrets.TOKEN }}"| docker login -u zebra --password-stdin git.izebra.net
|
||||||
|
##run: docker login -u zebra -p "${{ secrets.TOKEN }}" git.izebra.net
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: git.izebra.net/mirrored_repos/nexusdash:latest # Adjust the Gitea registry URL and team name
|
||||||
|
|
||||||
|
- name: Push Docker image to Gitea
|
||||||
|
run: docker push git.izebra.net/git.izebra.net/mirrored_repos/nexusdash:latest # Adjust the Gitea registry URL and team name
|
||||||
|
|
||||||
|
# Add any additional steps you need for deployment or other tasks
|
Loading…
Reference in New Issue
Block a user