Update local and build in local #151
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
name: Run release | |
on: push | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
name: Build and publish docker image | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: | | |
cd flask/docker | |
docker build . --file Dockerfile --tag myersresearchgroup/sbolexplorer:snapshot | |
docker build . --file Dockerfile-synbiohub --tag myersresearchgroup/sbolexplorer:snapshot-synbiohub | |
- uses: azure/docker-login@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push the image to Docker Hub | |
run: | | |
docker push myersresearchgroup/sbolexplorer:snapshot | |
docker push myersresearchgroup/sbolexplorer:snapshot-synbiohub |