Skip to content

Commit 1308e50

Browse files
authored
enable pushing image
1 parent 877fd76 commit 1308e50

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image CI
1+
name: "Docker: Build and Push Image"
22

33
on:
44
push:
@@ -18,11 +18,17 @@ jobs:
1818
- name: DOcker meta
1919
uses: docker/metadata-action@v5
2020
with:
21-
images: tls-attacker/anvil-web
21+
images: ghcr.io/tls-attacker/anvil-web
22+
- name: Login to GitHub Container Registry
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ghcr.io
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
2228
- name: Build and push
2329
uses: docker/build-push-action@v5
2430
with:
2531
context: .
26-
push: false
32+
push: true
2733
tags: ${{ steps.meta.outputs.tags }}
2834
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)