From 911b9e4884c9abb8d1f8b850192f765a692a772c Mon Sep 17 00:00:00 2001 From: mightypanders Date: Wed, 14 Jun 2023 21:27:16 +0200 Subject: [PATCH] adjust pipeline to be personalized --- .gitea/workflows/docker-build.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index b8f5fd7..fecf233 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -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