Use repo owner variable instead of gitea.actor
Build website container / Build image (push) Failing after 6s Details

This commit is contained in:
LordMathis 2023-11-25 16:55:34 +01:00
parent 1ac1c32e07
commit 5d3e4305ce
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ jobs:
env:
IMAGE_NAME: namesny-com
REGISTRY: git.namesny.com
REPO_OWNER: mathis
steps:
- name: Checkout
uses: actions/checkout@v4
@ -23,6 +24,6 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
run: |
docker build -t ${REGISTRY}/${{ gitea.actor }}/${IMAGE_NAME}:${{ gitea.sha }} -t ${REGISTRY}/${{ gitea.actor }}/${IMAGE_NAME}:latest .
docker build -t ${REGISTRY}/${REPO_OWNER}}/${IMAGE_NAME}:${{ gitea.sha }} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest .
docker push