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