NexusDash-izebra/.gitea/workflows/build.yaml
izebra 06c7c72d31
Some checks failed
Docker Build / build (push) Failing after 1m11s
edited build.yml
2024-01-03 13:29:28 -08:00

39 lines
1.1 KiB
YAML

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/izebra_projects/nexusdash-izebra:latest # Adjust the Gitea registry URL and team name
- name: Push Docker image to Gitea
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