File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Build and Push
2
+
3
+ on :
4
+ push :
5
+ branches : [ master, develop ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v2
12
+ - name : Extract branch name
13
+ shell : bash
14
+ run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
15
+ id : extract_branch
16
+ - name : Build the Docker image
17
+ run : |
18
+ docker build -t registry.tech4comp.dbis.rwth-aachen.de/rwthacis/sbf-utils:${{ steps.extract_branch.outputs.branch }} .
19
+ - name : Push to registry
20
+ env :
21
+ DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
22
+ DOCKER_PW : ${{ secrets.DOCKER_PW }}
23
+ run : |
24
+ docker login -u $DOCKER_USERNAME -p $DOCKER_PW registry.tech4comp.dbis.rwth-aachen.de
25
+ docker push registry.tech4comp.dbis.rwth-aachen.de/rwthacis/sbf-utils:${{ steps.extract_branch.outputs.branch }}
You can’t perform that action at this time.
0 commit comments