NexusDash-izebra/.gitea/workflows/build.yaml

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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
2024-01-03 21:29:28 +00:00
tags: git.izebra.net/izebra_projects/nexusdash-izebra:latest # Adjust the Gitea registry URL and team name
- name: Push Docker image to Gitea
2024-01-03 21:29:28 +00:00
run: docker push git.izebra.net/izebra_projects/nexusdash-izebra:latest # Adjust the Gitea registry URL and team name
# Add any additional steps you need for deployment or other tasks