1
1
name : docker-image
2
2
3
3
on :
4
- # Commenting for testing purposes
5
- # release:
6
- # types:
7
- # - created
8
- pull_request :
9
- push :
10
- branches : [fix/gh-docker-image]
4
+ release :
5
+ types :
6
+ - created
11
7
12
8
env :
13
9
CONTAINER_NAME : build-test
@@ -19,12 +15,11 @@ jobs:
19
15
- name : Checkout code
20
16
uses : actions/checkout@v3
21
17
22
- # Commenting for testing purposes
23
- # - name: Login to Docker Hub
24
- # uses: docker/login-action@v2
25
- # with:
26
- # username: ${{ secrets.DOCKER_HUB_USERNAME }}
27
- # password: ${{ secrets.DOCKER_HUB_TOKEN }}
18
+ - name : Login to Docker Hub
19
+ uses : docker/login-action@v2
20
+ with :
21
+ username : ${{ secrets.DOCKER_HUB_USERNAME }}
22
+ password : ${{ secrets.DOCKER_HUB_TOKEN }}
28
23
29
24
- name : Extract metadata (tags, labels) for Docker
30
25
id : meta
@@ -50,12 +45,11 @@ jobs:
50
45
run : |
51
46
docker run --rm ${{ env.CONTAINER_NAME }} conda run -n pymc-dev python -c 'import pymc;print(pymc.__version__)'
52
47
53
- # Commenting for testing purposes
54
- # - name: Build and push
55
- # uses: docker/build-push-action@v3
56
- # with:
57
- # context: .
58
- # push: true
59
- # file: scripts/Dockerfile
60
- # tags: ${{ steps.meta.outputs.tags }}
61
- # labels: ${{ steps.meta.outputs.labels }}
48
+ - name : Build and push
49
+ uses : docker/build-push-action@v3
50
+ with :
51
+ context : .
52
+ push : true
53
+ file : scripts/Dockerfile
54
+ tags : ${{ steps.meta.outputs.tags }}
55
+ labels : ${{ steps.meta.outputs.labels }}
0 commit comments