feat/cicd #22

Merged
kenobi merged 32 commits from feat/cicd into master 2023-06-14 22:43:37 +02:00
Showing only changes of commit 911b9e4884 - Show all commits

View File

@ -2,6 +2,11 @@ name: Build a docker image for node-jellyfin-role-ot
run-name: ${{ gitea.actor }} is building an image
on: [push]
env:
REGISTRY: gitea.brudi.xyz
IMAGE_NAME: ${{ gitea.repository }}
USER: ${{ gitea.actor }}
jobs:
build-docker-image:
runs-on: ubuntu-latest
@ -18,12 +23,12 @@ jobs:
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: gitea.brudi.xyz
username: ${{ secrets.USER }}
password: ${{ secrets.DOCKER_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ env.USER }}
password: ${{ secrets.TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.brudi.xyz/r2/jellyfin-discord-bot:latest
tags: ${{ env.REGISTRY }}/${{ env.USER }}/${{ IMAGE_NAME }}:latest