toolkit/.forgejo/workflows/release.yaml

36 lines
1.1 KiB
YAML
Raw Normal View History

2023-05-28 19:19:06 +00:00
name: Release
on:
push:
tags:
- '*'
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
- name: Check out repository
uses: actions/checkout@v3
- name: Docker login
2023-09-01 21:58:13 +00:00
uses: actions/docker-login@v2
with:
2023-09-01 22:02:27 +00:00
registry: ${REGISTRY}
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
2023-09-01 21:40:54 +00:00
- name: Build and push
uses: actions/docker-build-push@v4
with:
2023-09-01 21:41:20 +00:00
push: true
2023-09-01 21:50:27 +00:00
tags: |
2023-09-01 22:02:27 +00:00
${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}}
2023-09-01 21:45:27 +00:00
${REGISTRY}/${IMAGE_NAMESPACE}:latest
2023-09-01 21:58:22 +00:00
env:
ACTIONS_RUNTIME_TOKEN: '' #https://gitea.com/gitea/act_runner/issues/119#issuecomment-738294
2023-09-01 21:40:54 +00:00
- name: Inspect image
2023-09-01 22:02:27 +00:00
run: ${REGISTRY}/${IMAGE_NAMESPACE}:${{github.ref_name}}