38 lines
790 B
YAML
38 lines
790 B
YAML
name: Docker Build and Push
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
tags:
|
|
- '*'
|
|
release:
|
|
types: [ published ]
|
|
|
|
env:
|
|
GOMPLATE_VERSION: 5.1.0
|
|
GITEA_CONTAINER_REG: gitea.nerthus.nl
|
|
DOCKER_IMAGE_NAME: orbits-server
|
|
|
|
jobs:
|
|
docker_build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
curl -L -o /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v{{ env.GOMPLATE_VERSION }}/gomplate_linux-amd64
|
|
chmod +x /usr/bin/gomplate
|
|
|
|
- name: Render template
|
|
run: |
|
|
gomplate
|