Files
SomniaRoomsApp/.gitea/workflows/pub-on-tag.yaml
T
Daniel-Garmig de378a326b
Publish_on_Tag / Docker Lint (push) Has been cancelled
Publish_on_Tag / Build and Push (push) Has been cancelled
Add Gitea Actions Support:
- Build and publish on tag.
2024-05-11 23:28:42 +02:00

49 lines
1.2 KiB
YAML

name: Publish_on_Tag
on:
push:
tags:
- devbuild_*
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to local registry
uses: docker/login-action@v3
with:
registry: ${{vars.REGISTRY_INSTANCE}}
username: ${{gitea.repository_owner}}
password: ${{secrets.REGISTRY_TOKEN}} # It should be a user/org token with package perms.
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: daniel-garmig/somniaroomsapp:devbuild
target: final-prod
secrets: |
GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}}
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]