Skip to content

Commit

Permalink
Update actions to build backend docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmyers committed Oct 24, 2024
1 parent f557789 commit 80536ea
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Latest Backend Docker Image

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@v4
name: Checkout source code
- name: Build the Docker image
run: |
cd SBOLCanvasBackend
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
5 changes: 2 additions & 3 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ jobs:
name: Checkout source code
- name: Build the Docker image
run: |
cd SBOLCanvasBackend
docker build . --tag synbiohub/sbolcanvas:backend
docker build . --tag synbiohub/sbolcanvas:latest
- 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
docker push synbiohub/sbolcanvas:latest

0 comments on commit 80536ea

Please sign in to comment.