Compare commits
2 Commits
67ae4fbd99
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a9fe398eec | |||
| 9ecdfe7cd1 |
@@ -14,9 +14,15 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Compute short SHA
|
- name: Prepare build vars
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "sha_short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
run: |
|
||||||
|
host="${{ vars.REGISTRY_URL }}"
|
||||||
|
host="${host#https://}"
|
||||||
|
host="${host#http://}"
|
||||||
|
host="${host%/}"
|
||||||
|
echo "registry=$host" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "sha_short=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -24,7 +30,7 @@ jobs:
|
|||||||
- name: Login to Gitea registry
|
- name: Login to Gitea registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.REGISTRY_URL }}
|
registry: ${{ steps.vars.outputs.registry }}
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
@@ -34,5 +40,5 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.REGISTRY_URL }}/${{ env.IMAGE }}:latest
|
${{ steps.vars.outputs.registry }}/${{ env.IMAGE }}:latest
|
||||||
${{ vars.REGISTRY_URL }}/${{ env.IMAGE }}:sha-${{ steps.vars.outputs.sha_short }}
|
${{ steps.vars.outputs.registry }}/${{ env.IMAGE }}:sha-${{ steps.vars.outputs.sha_short }}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
<title>Day Drain</title>
|
<title>Day Drain</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||||
|
<script defer src="https://tracking.thewrightserver.net/script.js" data-website-id="941f89a7-2bbc-4def-b7dd-aeace5986aa2"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
Reference in New Issue
Block a user