This commit is contained in:
DataHearth 2023-06-30 13:16:32 +02:00
parent 72925ffd0c
commit b6a31ecd69
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
4 changed files with 15 additions and 9 deletions

View File

@ -1,4 +1,6 @@
Dockerfile
.dockerignore
LICENSE
.git*
.git*
.env
.gitignore

View File

@ -39,11 +39,10 @@ jobs:
- name: Fetch remote repository
id: fetch_version
run: |
apt-get install -y jq
if [[ ${{ gitea.ref_name }} == 'latest' ]]; do \
export VERSION=$(curl -sfL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | jq .tag_name -r); \
else \
export VERSION=${{ gitea.ref_name }}; \
if [[ ${{ gitea.ref_name }} == 'latest' ]]; then
export VERSION=$(curl -sfL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | jq .tag_name -r)
else
export VERSION=${{ gitea.ref_name }}
fi
git clone --depth 1 --branch $VERSION https://github.com/AmruthPillai/Reactive-Resume.git app
@ -57,7 +56,9 @@ jobs:
context: .
push: true
cache-to: type=inline
cache-from: type=registry,ref=${{ env.REPOSITORY}}
cache-from: |
type=registry,ref=${{ env.REPOSITORY}}:latest
type=registry,ref=${{ env.HOSTNAME }}/${{ env.REPOSITORY }}:latest
tags: |
${{ env.REPOSITORY }}:${{ steps.get_version.outputs.version }}
${{ env.REPOSITORY }}:latest

3
.gitignore vendored
View File

@ -1 +1,2 @@
app
app
.env

View File

@ -4,6 +4,8 @@ if [ ! -f .env ]; then
cp /data/.env.template .env
fi
export $(grep -v '^#' .env | xargs)
set -a
source .env
set +a
exec "$@"