Skip to content

Commit 5650d3f

Browse files
committed
Update empty.yml
1 parent 71c444a commit 5650d3f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/empty.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,16 @@ jobs:
2323
username: ${{ github.actor }}
2424
password: ${{ secrets.GITHUB_TOKEN }}
2525

26-
- name: Create and Push Placeholder
26+
- name: Create Placeholder
2727
run: |
2828
echo "FROM scratch" > Dockerfile
2929
echo "LABEL placeholder=true" >> Dockerfile
3030
31-
docker build -t ghcr.io/zenfyrdev/${{ github.event.inputs.image_name }}:latest .
32-
docker push ghcr.io/zenfyrdev/${{ github.event.inputs.image_name }}:latest
31+
- name: Build and push dummy image
32+
uses: docker/build-push-action@v4
33+
with:
34+
context: .
35+
file: ./Dockerfile
36+
push: true
37+
tags: |
38+
ghcr.io/${{ github.repository_owner }}/${{ github.event.inputs.image_name }}:latest

0 commit comments

Comments
 (0)