Merge branch 'main' of git.kohout-dev.de:rezepte/rezepte
Some checks failed
Build and Push Docker Container / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Container / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -8,26 +8,24 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on:
|
runs-on:
|
||||||
- docker
|
- ubuntu-22.04
|
||||||
container:
|
|
||||||
image: node:18
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Docker
|
- name: Login to Docker Hub
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
apt-get update
|
with:
|
||||||
apt-get install -y docker.io
|
registry: git.kohout-dev.de
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
password: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Clone Repository
|
- name: Set up QEMU
|
||||||
uses: actions/checkout@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Registry
|
- name: Set up Docker Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v3
|
||||||
echo "${{ secrets.DOCKER_TOKEN }}" | docker login git.kohout-dev.de -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build and push
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
docker build -t git.kohout-dev.de/${{ secrets.DOCKER_USERNAME }}/rezepte:latest .
|
with:
|
||||||
|
push: true
|
||||||
- name: Push Docker Image
|
platforms: linux/amd64,linux/arm64
|
||||||
run: |
|
tags: "git.kohout-dev.de/rezepte/rezepte:${{gitea.sha}},git.kohout-dev.de/rezepte/rezepte:latest"
|
||||||
docker push git.kohout-dev.de/${{ secrets.DOCKER_USERNAME }}/rezepte:latest
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
baseURL = 'https://rezepte.kohout-dev.de/'
|
baseURL = 'https://rezepte.eliaskohout.de/'
|
||||||
languageCode = 'de-de'
|
languageCode = 'de-de'
|
||||||
title = 'Rezepte'
|
title = 'Rezepte'
|
||||||
|
|
||||||
|
|||||||
@@ -14,17 +14,17 @@
|
|||||||
|
|
||||||
<!-- Stylesheets -->
|
<!-- Stylesheets -->
|
||||||
{{ $style := resources.Get "css/main.css" | resources.Minify | resources.Fingerprint }}
|
{{ $style := resources.Get "css/main.css" | resources.Minify | resources.Fingerprint }}
|
||||||
<link rel='stylesheet' type='text/css' href="{{ $style.Permalink }}">
|
<link rel='stylesheet' type='text/css' href="{{ $style.RelPermalink }}">
|
||||||
{{ $style := resources.Get "css/fonts.css" | resources.Minify | resources.Fingerprint }}
|
{{ $style := resources.Get "css/fonts.css" | resources.Minify | resources.Fingerprint }}
|
||||||
<link rel='stylesheet' type='text/css' href="{{ $style.Permalink }}">
|
<link rel='stylesheet' type='text/css' href="{{ $style.RelPermalink }}">
|
||||||
{{ $style := resources.Get "css/dark.css" | resources.Minify | resources.Fingerprint }}
|
{{ $style := resources.Get "css/dark.css" | resources.Minify | resources.Fingerprint }}
|
||||||
<link id="darkModeStyle" rel="stylesheet" type="text/css" href="{{ $style.Permalink }}"
|
<link id="darkModeStyle" rel="stylesheet" type="text/css" href="{{ $style.RelPermalink }}"
|
||||||
{{ if eq .Site.Params.mode "auto" }} media="(prefers-color-scheme: dark)" {{ end }}
|
{{ if eq .Site.Params.mode "auto" }} media="(prefers-color-scheme: dark)" {{ end }}
|
||||||
{{ if eq .Site.Params.mode "toggle" }} disabled {{ end }} >
|
{{ if eq .Site.Params.mode "toggle" }} disabled {{ end }} >
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
{{ $style := resources.Get "js/themetoggle.js" | resources.Minify | resources.Fingerprint }}
|
{{ $style := resources.Get "js/themetoggle.js" | resources.Minify | resources.Fingerprint }}
|
||||||
<script src="{{ $style.Permalink }}"></script>
|
<script src="{{ $style.RelPermalink }}"></script>
|
||||||
|
|
||||||
<!-- Meta data -->
|
<!-- Meta data -->
|
||||||
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
|
<meta name="description" content="{{ with .Params.description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user