File tree 4 files changed +52
-0
lines changed
4 files changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker build latest
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ docker-build-and-push :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - name : Build the Docker image
10
+ uses : actions/checkout@v2
11
+ with :
12
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
13
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
14
+ - run : |
15
+ echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin docker.io
16
+ docker build . --file Dockerfile --tag docker.io/${{ secrets.DOCKERHUB_USERNAME }}/sofiax:latest
17
+ docker push docker.io/${{ secrets.DOCKERHUB_USERNAME }}/sofiax:latest
Original file line number Diff line number Diff line change
1
+ name : Docker build release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+
8
+ jobs :
9
+ docker-build-and-push :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ -
14
+ name : Set release version
15
+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
16
+ -
17
+ name : Build the Docker image
18
+ uses : actions/checkout@v2
19
+ with :
20
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
21
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
22
+ -
23
+ run : |
24
+ echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin docker.io
25
+ docker build . --file Dockerfile --tag docker.io/${{ secrets.DOCKERHUB_USERNAME }}/sofiax:$RELEASE_VERSION
26
+ docker push docker.io/${{ secrets.DOCKERHUB_USERNAME }}/sofiax:$RELEASE_VERSION
Original file line number Diff line number Diff line change
1
+ FROM python:3.8
2
+ WORKDIR /app
3
+
4
+ RUN git clone https://github.com/AusSRC/SoFiAX.git &&\
5
+ cd SoFiAX &&\
6
+ python3 setup.py install
7
+
8
+ ENTRYPOINT [ "sofiax" ]
Original file line number Diff line number Diff line change 2
2
An [ AusSRC] ( https://aussrc.org/ ) Project.
3
3
4
4
[ ![ Functional tests] ( https://github.com/AusSRC/SoFiAX/actions/workflows/tests.yml/badge.svg )] ( https://github.com/AusSRC/SoFiAX/actions/workflows/tests.yml )
5
+ [ ![ Docker latest] ( https://github.com/AusSRC/SoFiAX/actions/workflows/docker-build-latest.yml/badge.svg )] ( https://github.com/AusSRC/SoFiAX/actions/workflows/docker-build-latest.yml )
5
6
6
7
## Description
7
8
You can’t perform that action at this time.
0 commit comments