Skip to content

Merge pull request #3 from SynBioHub/master #6

Merge pull request #3 from SynBioHub/master

Merge pull request #3 from SynBioHub/master #6

Workflow file for this run

name: Build and push docker images
on:
push:
branches: [main]
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: |
repo_name_lower=$(echo ${{ github.event.repository.name }}| tr [:upper:] [:lower:])
tag="synbiohub/${repo_name_lower}:snapshot"
echo $tag
docker build . --tag $tag
- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push the image to Docker Hub
run: |
repo_name_lower=$(echo ${{ github.event.repository.name }}| tr [:upper:] [:lower:])
tag="synbiohub/${repo_name_lower}:snapshot"
echo $tag
docker push $tag