Skip to content

Commit 06f992c

Browse files
committed
added ghcr token and took out useless stuff
1 parent 640269e commit 06f992c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/push-docker-image.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99
REGISTRY: ghcr.io
1010
# github.repository as <account>/<repo>
1111
IMAGE_NAME: ${{ github.repository }}
12-
username: ${{ secrets.USERNAME }}
13-
password: ${{ secrets.GHCR_TOKEN }}
1412

1513

1614
jobs:
@@ -25,18 +23,16 @@ jobs:
2523
# Login against a Docker registry
2624
- name: Log into registry ${{ env.REGISTRY }}
2725
if: github.event_name != 'pull_request'
28-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
26+
uses: docker/login-action@3
2927
with:
3028
registry: ${{ env.REGISTRY }}
3129
username: ${{ secrets.USERNAME }}
3230
password: ${{ secrets.GHCR_TOKEN }}
3331

3432

35-
# Extract metadata (tags, labels) for Docker
36-
# https://github.com/docker/metadata-action
3733
- name: Extract Docker metadata
3834
id: meta
39-
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
35+
uses: docker/metadata-action@5 # v5.0.0
4036
with:
4137
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4238

0 commit comments

Comments
 (0)