master 1.0.2
Gertjan Krol 2023-09-02 00:17:19 +02:00
parent ceefa6015e
commit d18907ef8f
1 changed files with 4 additions and 7 deletions

View File

@ -8,9 +8,6 @@ jobs:
build_push: build_push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: docker:latest container: docker:latest
env:
REGISTRY: git.gertjankrol.nl
IMAGE_NAMESPACE: docker/toolkit
steps: steps:
- name: Install dependencies # not present in `docker` container but needed for `checkout` action - name: Install dependencies # not present in `docker` container but needed for `checkout` action
run: apk add --no-cache git nodejs run: apk add --no-cache git nodejs
@ -19,7 +16,7 @@ jobs:
- name: Docker login - name: Docker login
uses: actions/docker-login@v2 uses: actions/docker-login@v2
with: with:
registry: git.gertjankrol.nl registry: ${{secrets.DOCKER_REGISTRY}}
username: ${{secrets.DOCKER_USERNAME}} username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}} password: ${{secrets.DOCKER_PASSWORD}}
- name: Build and push - name: Build and push
@ -27,9 +24,9 @@ jobs:
with: with:
push: true push: true
tags: | tags: |
${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}} ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}
${REGISTRY}/${IMAGE_NAMESPACE}:latest ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest
env: env:
ACTIONS_RUNTIME_TOKEN: '' #https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294 ACTIONS_RUNTIME_TOKEN: '' #https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294
- name: Inspect image - name: Inspect image
run: ${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}} run: docker inspect ${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}