Skip to content

Commit

Permalink
rm cd from ignore and add cd temp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Jul 31, 2024
1 parent 57f432a commit c6f8e9c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/cd.yaml
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 }}"
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ assets/.env_dev
bucket.sh
.env_dev
NOTES
cd.yaml

0 comments on commit c6f8e9c

Please sign in to comment.