-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.47 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Run release
on:
release:
types: [published]
jobs:
retag-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
RELEASE=$(echo $GITHUB_REF | cut -d'/' -f 3)
docker build . --file flask/docker/Dockerfile --tag myersresearchgroup/sbolexplorer:$RELEASE-standalone
- 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 myersresearchgroup/sbolexplorer:$RELEASE-standalone
update-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
repository: synbiohub/synbiohub-docker
- name: Change tag
run: |
RELEASE=$(echo $GITHUB_REF | cut -d'/' -f 3)
sed -i "s/myersresearchgroup\/sbolexplorer:.*-standalone/myersresearchgroup\/sbolexplorer:$RELEASE-standalone/g" docker-compose.explorer.yml docker-compose.version.yml
- name: Commit tag change
uses: zwaldowski/git-commit-action@v1
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: synbiohub/synbiohub-docker
github_token: ${{ secrets.BUGGSLEY_GITHUB_TOKEN }}