Skip to content

Commit 1a8c596

Browse files
committed
#35 added login to DockerHub
1 parent 3cb0900 commit 1a8c596

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/terraform-utils-image.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ on:
44
push:
55
branches:
66
- 'feature/terraform-utils'
7-
paths:
8-
- 'docker/terraform-utils/Dockerfile'
7+
#paths:
8+
# - 'docker/terraform-utils/Dockerfile'
99

1010
jobs:
1111
push_to_registries:
12-
name: Push Docker image to multiple registries
12+
name: Push Docker image
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Check out the repo
1616
uses: actions/checkout@v2
17-
- name: Push to Docker Hub
18-
uses: docker/build-push-action@v2
17+
- name: Login to DockerHub
18+
uses: docker/login-action@v1
1919
with:
2020
username: ${{ secrets.DOCKER_USERNAME }}
2121
password: ${{ secrets.DOCKER_PASSWORD }}
22+
- name: Build and push
23+
uses: docker/build-push-action@v2
24+
with:
2225
context: docker/terraform-utils/
2326
tags: maddevsio/terraform-utils:latest

0 commit comments

Comments
 (0)