2023-05-28 19:53:38 +00:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: git.gertjankrol.nl/docker/toolkit:latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Docker login
|
2023-09-02 15:17:42 +00:00
|
|
|
uses: actions/docker-login@v2
|
|
|
|
with:
|
|
|
|
registry: ${{secrets.DOCKER_REGISTRY}}
|
|
|
|
username: ${{secrets.DOCKER_USERNAME}}
|
|
|
|
password: ${{secrets.DOCKER_PASSWORD}}
|
|
|
|
- name: Build and push image
|
2023-09-02 15:19:44 +00:00
|
|
|
uses: actions/docker-build-push@v4
|
2023-09-02 15:17:42 +00:00
|
|
|
with:
|
|
|
|
build-args: |
|
|
|
|
VERSION=${{github.ref_name}}
|
|
|
|
tags: |
|
|
|
|
${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:${{github.ref_name}}
|
|
|
|
${{secrets.DOCKER_REGISTRY}}/${{github.repository}}:latest
|
|
|
|
push: true
|