let's try to build with a secret...
Some checks failed
Build napotd / Build-And-Push (push) Failing after 18s

This commit is contained in:
2024-03-04 18:09:34 -06:00
parent 10bfdfbbeb
commit 0abee809e8

View File

@@ -0,0 +1,29 @@
name: Build napotd
on: [push]
env:
CONTAINER_NAME: napotd
ORG_NAME: deltreey
jobs:
Build-And-Push:
runs-on: docker
# container:
# image: docker:dind
# privileged: true
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: gitea.area-51-x.com
username: ${{secrets.DOCKER_USER}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: Build and push
uses: docker/build-push-action@v5
with:
registry: gitea.area-51-x.com
push: true
tags: $ORG_NAME/$CONTAINER_NAME:latest, $ORG_NAME/$CONTAINER_NAME:${{gitea.ref_name}}