forked from microsoft/CameraTraps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from zooniverse/mdv5-zooniverse-poc
update deploy app build and push step to not use shared ci-cd workflow since ref needs to be zooniverse-deployment branch
- Loading branch information
Showing
1 changed file
with
32 additions
and
7 deletions.
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 |
---|---|---|
|
@@ -8,13 +8,38 @@ on: | |
|
||
jobs: | ||
build_and_push_image: | ||
name: Build and Push Image | ||
uses: zooniverse/ci-cd/.github/workflows/build_and_push_image.yaml@main | ||
with: | ||
repo_name: camera-traps-api | ||
commit_id: ${{ github.sha }} | ||
file: ./api/batch_processing/api_core/Dockerfile | ||
latest: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
repository: zooniverse/camera-traps-api | ||
ref: zooniverse-deployment | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Create commit_id.txt | ||
run: echo ${{ github.sha }} > commit_id.txt | ||
|
||
- name: Build and push | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./api/batch_processing/api_core/Dockerfile | ||
push: true | ||
tags: | | ||
ghcr.io/zooniverse/camera-traps-api:latest | ||
ghcr.io/zooniverse/camera-traps-api:${{ github.sha }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
||
deploy_app: | ||
runs-on: ubuntu-latest | ||
|