Adding continuous deployment
Some checks failed
Anatid Blog CI Workflow / test (./backend) (push) Successful in 27s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 32s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Successful in 36s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Successful in 44s
Anatid Blog CI Workflow / deploy (push) Failing after 0s

This commit is contained in:
Phill Pover 2025-03-27 11:59:46 +00:00
parent 4813ea6cb8
commit b3739a6242

View File

@ -33,6 +33,7 @@ jobs:
working-directory: ./${{ matrix.workingdir }} working-directory: ./${{ matrix.workingdir }}
build-and-push-images: build-and-push-images:
needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
@ -78,3 +79,12 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
deploy:
needs: build-and-push-images
runs-on: self-hosted
steps:
- name: Pull docker containers
run: docker compose pull
- name: Start containers
run: docker compose up -d anatid-blog-frontend anatid-blog-backend