Skip to content

Commit 659ce09

Browse files
committed
Complete dockerhub flow
1 parent 34f814a commit 659ce09

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/docker-ci.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ jobs:
2323
uses: docker/metadata-action@v4
2424
with:
2525
images: |
26-
name/app
26+
agustinaon/revalidate-nextjs-on-event
2727
tags: |
2828
type=ref,event=branch
2929
type=ref,event=pr
3030
type=semver,pattern={{version}}
3131
type=semver,pattern={{major}}.{{minor}}
32-
# -
33-
# name: Login to DockerHub
34-
# if: github.event_name != 'pull_request'
35-
# uses: docker/login-action@v2
36-
# with:
37-
# username: ${{ secrets.DOCKERHUB_USERNAME }}
38-
# password: ${{ secrets.DOCKERHUB_TOKEN }}
39-
# -
40-
# name: Build and push
41-
# uses: docker/build-push-action@v3
42-
# with:
43-
# context: .
44-
# push: ${{ github.event_name != 'pull_request' }}
45-
# tags: ${{ steps.meta.outputs.tags }}
46-
# labels: ${{ steps.meta.outputs.labels }}
32+
-
33+
name: Login to DockerHub
34+
if: github.event_name != 'pull_request'
35+
uses: docker/login-action@v2
36+
with:
37+
username: ${{ secrets.DOCKERHUB_USERNAME }}
38+
password: ${{ secrets.DOCKERHUB_TOKEN }}
39+
-
40+
name: Build and push
41+
uses: docker/build-push-action@v3
42+
with:
43+
context: .
44+
push: ${{ github.event_name != 'pull_request' }}
45+
tags: ${{ steps.meta.outputs.tags }}
46+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)