feature: migrate to container.localdomain and add actions workflow to build
All checks were successful
Main / build (push) Successful in 15m43s

This commit is contained in:
RouxAntoine 2023-08-19 18:15:46 +02:00
parent 9fb5ac222c
commit 97cfc59bb6
Signed by: antoine
GPG Key ID: 098FB66FC0475E70
3 changed files with 46 additions and 1 deletions

39
.github/workflows/main.yaml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Main
on:
push:
branches:
- master
env:
REGISTRY_NAME: container.localdomain:5000
jobs:
build:
runs-on: docker
container:
image: catthehacker/ubuntu:act-22.04
steps:
- uses: RouxAntoine/checkout@v3.5.4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.9.1
with:
config-inline: |
[registry."${{ env.REGISTRY_NAME }}"]
http = true
- name: Build and push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
with:
context: .
push: true
tags: ${{ env.REGISTRY_NAME }}/perkeep:latest
platforms: |
linux/amd64
linux/arm64

View File

@ -1,6 +1,6 @@
.PHONY: imagePerkeep
REGISTRY_NAME=docker.registry
REGISTRY_NAME=container.localdomain
# linux/arm/v7
# linux/arm/v6
# linux/arm64

View File

@ -5,6 +5,12 @@ then
return 1;
fi
if [ "T$SECRING" != "T" ] && [ "T$IDENTITY" != "T" ];
then
echo "$SECRING" > /perkeep/config/identity-secring.gpg
envsubst < /perkeep/config/server-config-custom.tpl.json > /perkeep/config/server-config-custom.json
fi
if [ ! -f /perkeep/config/identity-secring.gpg ];
then
pk put init -newkey