This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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
|
||||
@@ -23,12 +23,6 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Prepare for rootless docker
|
||||
run: |
|
||||
ls -l /run/docker.sock || true
|
||||
ss -lx | grep docker || true
|
||||
ps aux | grep dockerd || true
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
|
||||
Reference in New Issue
Block a user