Refactor CI workflow to simplify checkout process and update paths for backend and frontend builds
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 0s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 0s
This commit is contained in:
parent
53442cece2
commit
f87a430bbe
@ -11,12 +11,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
git config --global http.sslCAInfo /certs/ca.crt
|
||||
rm -rf $GITEA_WORKSPACE
|
||||
mkdir -p $GITEA_WORKSPACE
|
||||
git clone https://gitea.home.arpa/nik/watch-party $GITEA_WORKSPACE
|
||||
env:
|
||||
GIT_SSL_CAINFO: /certs/ca.crt
|
||||
rm -rf /tmp/watch-party
|
||||
git clone https://gitea.home.arpa/nik/watch-party /tmp/watch-party
|
||||
|
||||
- name: Write deploy key
|
||||
run: |
|
||||
@ -28,15 +24,13 @@ jobs:
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login gitea.home.arpa \
|
||||
--username ${{ secrets.REGISTRY_USERNAME }} \
|
||||
--password-stdin
|
||||
env:
|
||||
GIT_SSL_CAINFO: /certs/ca.crt
|
||||
|
||||
- name: Build and push backend
|
||||
run: |
|
||||
docker build \
|
||||
--platform linux/amd64 \
|
||||
-t gitea.home.arpa/nik/watch-party-backend:latest \
|
||||
$GITEA_WORKSPACE/backend
|
||||
/tmp/watch-party/backend
|
||||
docker push gitea.home.arpa/nik/watch-party-backend:latest
|
||||
|
||||
- name: Build and push frontend
|
||||
@ -44,7 +38,7 @@ jobs:
|
||||
docker build \
|
||||
--platform linux/amd64 \
|
||||
-t gitea.home.arpa/nik/watch-party-frontend:latest \
|
||||
$GITEA_WORKSPACE/frontend
|
||||
/tmp/watch-party/frontend
|
||||
docker push gitea.home.arpa/nik/watch-party-frontend:latest
|
||||
|
||||
- name: Deploy to Mac Mini
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user