Skip to content

Commit 7972cb5

Browse files
committed
🚀 remove testing conf
1 parent e7ac630 commit 7972cb5

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/docker-image.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: docker-image
22

33
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
117

128
env:
139
CONTAINER_NAME: build-test
@@ -19,12 +15,11 @@ jobs:
1915
- name: Checkout code
2016
uses: actions/checkout@v3
2117

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 }}
2823

2924
- name: Extract metadata (tags, labels) for Docker
3025
id: meta
@@ -50,12 +45,11 @@ jobs:
5045
run: |
5146
docker run --rm ${{ env.CONTAINER_NAME }} conda run -n pymc-dev python -c 'import pymc;print(pymc.__version__)'
5247
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

Comments
 (0)