Skip to content

Commit

Permalink
feature/ci-cd add cd job deps
Browse files Browse the repository at this point in the history
  • Loading branch information
requiemofthesouls committed Jan 27, 2022
1 parent a5963b3 commit 7be8151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ PIGEOMAIL_VERSION="$1"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

echo "PIGEOMAIL_VERSION=$PIGEOMAIL_VERSION" > "$SCRIPT_DIR"/.env
docker-compose up -f docker-compose.yml -d
docker-compose up -f "$SCRIPT_DIR"/.deploy/docker-compose.yml -d

exit 0
4 changes: 3 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish release and deploy
name: Release and deploy

on:
push:
Expand Down Expand Up @@ -45,6 +45,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

publish-release:
needs: build-and-push-image
name: Publish release
runs-on: ubuntu-latest
permissions:
Expand All @@ -62,6 +63,7 @@ jobs:
prerelease: false

deploy:
needs: build-and-push-image
name: Deploy
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7be8151

Please # to comment.