Refactor CI workflow to use custom checkout logic and update build paths
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
1881e088d8
commit
53442cece2
@ -10,7 +10,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
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
|
||||
|
||||
- name: Write deploy key
|
||||
run: |
|
||||
@ -22,13 +28,15 @@ 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 \
|
||||
./backend
|
||||
$GITEA_WORKSPACE/backend
|
||||
docker push gitea.home.arpa/nik/watch-party-backend:latest
|
||||
|
||||
- name: Build and push frontend
|
||||
@ -36,7 +44,7 @@ jobs:
|
||||
docker build \
|
||||
--platform linux/amd64 \
|
||||
-t gitea.home.arpa/nik/watch-party-frontend:latest \
|
||||
./frontend
|
||||
$GITEA_WORKSPACE/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