-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57f432a
commit c6f8e9c
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build_containers: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.9' | ||
|
||
# this CD assumes that CI has already been run (on each push to main), and thus tests have passed. | ||
- name: Build api | ||
run: | | ||
echo "Run api build script here" | ||
# run: ./assets/scripts/build_image.sh api | ||
|
||
- name: Build worker | ||
run: | | ||
echo "Run worker build script here" | ||
# run: ./assets/scripts/build_image.sh worker | ||
|
||
release_new_containers: | ||
needs: build_containers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Release new api container version | ||
run: | | ||
echo "Run api push script here" | ||
# run: ./push.sh | ||
|
||
- name: Release new worker container version | ||
run: | | ||
echo "Run worker push script here" | ||
# run: ./push.sh | ||
|
||
- name: Notify Deployment | ||
run: echo "Deployment successful on release ${{ github.ref }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,3 @@ assets/.env_dev | |
bucket.sh | ||
.env_dev | ||
NOTES | ||
cd.yaml |