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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- 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
|
- name: Write deploy key
|
||||||
run: |
|
run: |
|
||||||
@ -22,13 +28,15 @@ jobs:
|
|||||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login gitea.home.arpa \
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login gitea.home.arpa \
|
||||||
--username ${{ secrets.REGISTRY_USERNAME }} \
|
--username ${{ secrets.REGISTRY_USERNAME }} \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
env:
|
||||||
|
GIT_SSL_CAINFO: /certs/ca.crt
|
||||||
|
|
||||||
- name: Build and push backend
|
- name: Build and push backend
|
||||||
run: |
|
run: |
|
||||||
docker build \
|
docker build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-t gitea.home.arpa/nik/watch-party-backend:latest \
|
-t gitea.home.arpa/nik/watch-party-backend:latest \
|
||||||
./backend
|
$GITEA_WORKSPACE/backend
|
||||||
docker push gitea.home.arpa/nik/watch-party-backend:latest
|
docker push gitea.home.arpa/nik/watch-party-backend:latest
|
||||||
|
|
||||||
- name: Build and push frontend
|
- name: Build and push frontend
|
||||||
@ -36,7 +44,7 @@ jobs:
|
|||||||
docker build \
|
docker build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-t gitea.home.arpa/nik/watch-party-frontend:latest \
|
-t gitea.home.arpa/nik/watch-party-frontend:latest \
|
||||||
./frontend
|
$GITEA_WORKSPACE/frontend
|
||||||
docker push gitea.home.arpa/nik/watch-party-frontend:latest
|
docker push gitea.home.arpa/nik/watch-party-frontend:latest
|
||||||
|
|
||||||
- name: Deploy to Mac Mini
|
- name: Deploy to Mac Mini
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user