apparently cant docker run and mount so lets try this
Some checks failed
cicd / cicd (push) Failing after 13s
Some checks failed
cicd / cicd (push) Failing after 13s
This commit is contained in:
@@ -15,12 +15,17 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
- name: cicd
|
||||
run: |
|
||||
docker run \
|
||||
--rm \
|
||||
-i \
|
||||
-v "$(realpath "$PWD")":/mnt \
|
||||
-w /mnt \
|
||||
-e FIREBASE_CI_TOKEN='${{ secrets.FIREBASE_CI_TOKEN }}' \
|
||||
-e GITLAB_PAT='${{ secrets.GITLAB_PAT }}' \
|
||||
registry-app.inhome.blapointe.com:5001/portfolio/resume/builder:latest \
|
||||
bash ./build/firebase.sh
|
||||
f=$(mktemp)
|
||||
echo "FIREBASE_CI_TOKEN='${{ secrets.FIREBASE_CI_TOKEN }}'" >> ./.env
|
||||
echo "GITLAB_PAT='${{ secrets.GITLAB_PAT }}'" >> ./.env
|
||||
echo '
|
||||
FROM registry-app.inhome.blapointe.com:5001/portfolio/resume/builder:latest
|
||||
WORKDIR /mnt
|
||||
COPY ./ /mnt/
|
||||
RUN source ./.env
|
||||
RUN bash ./build/firebase.sh
|
||||
' | sed 's/^ *//' > $f
|
||||
docker build -f $f -t resume-build:resume-build .
|
||||
result=$?
|
||||
docker rmi resume-build:resume-build || true
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user