-
Notifications
You must be signed in to change notification settings - Fork 6
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 #346 from SynBioDex/workflow-updates
Update github workflows for backend docker container
- Loading branch information
Showing
4 changed files
with
82 additions
and
4 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
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,22 @@ | ||
name: Build Latest Backend Docker Image | ||
|
||
defaults: | ||
run: | ||
working-directory: ./SBOLCanvasBackend | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: | ||
- final | ||
|
||
jobs: | ||
build-and-push: | ||
name: Build image and push to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout source code | ||
- name: Build the Docker image | ||
run: | | ||
docker build . --tag synbiohub/sbolcanvas:backend |
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,29 @@ | ||
name: Build Latest Backend Docker Image | ||
|
||
|
||
defaults: | ||
run: | ||
working-directory: ./SBOLCanvasBackend | ||
|
||
on: | ||
push: | ||
branches: [ final ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-push: | ||
name: Build image and push to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout source code | ||
- name: Build the Docker image | ||
run: | | ||
docker build . --tag synbiohub/sbolcanvas:backend | ||
- uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Push the image to Docker Hub | ||
run: | | ||
docker push synbiohub/sbolcanvas:backend |
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,30 @@ | ||
name: Build Newest Release Docker Image | ||
|
||
|
||
defaults: | ||
run: | ||
working-directory: ./SBOLCanvasBackend | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-push: | ||
name: Build image and push to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout source code | ||
- name: Build the Docker image | ||
run: | | ||
RELEASE=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||
docker build . --tag synbiohub/sbolcanvas:backend-$RELEASE | ||
- uses: azure/docker-login@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Push the image to Docker Hub | ||
run: | | ||
RELEASE=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||
docker push synbiohub/sbolcanvas:backend-$RELEASE |