forked from SynBioHub/Submit-Testing
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 887 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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="geneticlogiclab/${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="geneticlogiclab/${repo_name_lower}:snapshot"
echo $tag
docker push $tag