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 Dockerfile
.dockerignore .dockerignore
LICENSE LICENSE
.git* .git*
.env
.gitignore

View File

@ -39,11 +39,10 @@ jobs:
- name: Fetch remote repository - name: Fetch remote repository
id: fetch_version id: fetch_version
run: | run: |
apt-get install -y jq if [[ ${{ gitea.ref_name }} == 'latest' ]]; then
if [[ ${{ gitea.ref_name }} == 'latest' ]]; do \ export VERSION=$(curl -sfL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | jq .tag_name -r)
export VERSION=$(curl -sfL https://api.github.com/repos/AmruthPillai/Reactive-Resume/releases/latest | jq .tag_name -r); \ else
else \ export VERSION=${{ gitea.ref_name }}
export VERSION=${{ gitea.ref_name }}; \
fi fi
git clone --depth 1 --branch $VERSION https://github.com/AmruthPillai/Reactive-Resume.git app git clone --depth 1 --branch $VERSION https://github.com/AmruthPillai/Reactive-Resume.git app
@ -57,7 +56,9 @@ jobs:
context: . context: .
push: true push: true
cache-to: type=inline 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: | tags: |
${{ env.REPOSITORY }}:${{ steps.get_version.outputs.version }} ${{ env.REPOSITORY }}:${{ steps.get_version.outputs.version }}
${{ env.REPOSITORY }}:latest ${{ 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 cp /data/.env.template .env
fi fi
export $(grep -v '^#' .env | xargs) set -a
source .env
set +a
exec "$@" exec "$@"