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
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:
parent
4813ea6cb8
commit
b3739a6242
@ -33,6 +33,7 @@ jobs:
|
||||
working-directory: ./${{ matrix.workingdir }}
|
||||
|
||||
build-and-push-images:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
@ -78,3 +79,12 @@ jobs:
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user