From 46f3b6c3671d28ea0474cdad9adea36ef51a96e2 Mon Sep 17 00:00:00 2001 From: Gertjan Krol Date: Sat, 2 Sep 2023 00:17:19 +0200 Subject: [PATCH] :bookmark: --- .forgejo/workflows/release.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index 2db1007..12b3aeb 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -8,9 +8,6 @@ jobs: build_push: runs-on: ubuntu-latest container: docker:latest - env: - REGISTRY: git.gertjankrol.nl - IMAGE_NAMESPACE: docker/toolkit steps: - name: Install dependencies # not present in `docker` container but needed for `checkout` action run: apk add --no-cache git nodejs @@ -19,7 +16,7 @@ jobs: - name: Docker login uses: actions/docker-login@v2 with: - registry: git.gertjankrol.nl + registry: ${{secrets.DOCKER_REGISTRY}} username: ${{secrets.DOCKER_USERNAME}} password: ${{secrets.DOCKER_PASSWORD}} - name: Build and push @@ -27,9 +24,9 @@ jobs: with: push: true tags: | - ${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}} - ${REGISTRY}/${IMAGE_NAMESPACE}:latest + ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}} + ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest env: ACTIONS_RUNTIME_TOKEN: '' #https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294 - name: Inspect image - run: ${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}} + run: docker inspect ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}