wip
This commit is contained in:
parent
72925ffd0c
commit
b6a31ecd69
|
@ -1,4 +1,6 @@
|
||||||
Dockerfile
|
Dockerfile
|
||||||
.dockerignore
|
.dockerignore
|
||||||
LICENSE
|
LICENSE
|
||||||
.git*
|
.git*
|
||||||
|
.env
|
||||||
|
.gitignore
|
|
@ -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
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
app
|
app
|
||||||
|
.env
|
|
@ -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 "$@"
|
Reference in New Issue