feat/cicd #22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user