Test building on gitea and use gitea's registry.
This commit is contained in:
39
.gitea/workflows/release.yml
Normal file
39
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Build container image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
USER: chris
|
||||||
|
PASS: q',\H(Od:G3).Xv<#!5P
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build-and-release-image:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log into registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: https://cs-git.ddnss.de
|
||||||
|
username: ${{ env.USER }}
|
||||||
|
password: ${{ env.PASS }}
|
||||||
|
|
||||||
|
- name: Extract Docker metadata
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: cs-git.ddnss.de/arbeitsschutz-ulm/website
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
env:
|
||||||
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
|
with:
|
||||||
|
tags: cs-git.ddnss.de/arbeitsschutz-ulm/website:master
|
||||||
|
push: true
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM httpd:alpine3.19
|
FROM httpd:alpine3.21
|
||||||
|
|
||||||
RUN sed -ri -e 's!DirectoryIndex index.html!DirectoryIndex index.htm!g' /usr/local/apache2/conf/httpd.conf
|
RUN sed -ri -e 's!DirectoryIndex index.html!DirectoryIndex index.htm!g' /usr/local/apache2/conf/httpd.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user