Use repo owner variable instead of gitea.actor
Build website container / Build image (push) Failing after 6s
Details
Build website container / Build image (push) Failing after 6s
Details
This commit is contained in:
parent
1ac1c32e07
commit
5d3e4305ce
|
@ -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
|
||||
|
Loading…
Reference in New Issue