Skip to content

Commit 83cfa42

Browse files
committed
use docker login-action and github.actor
1 parent aacb26d commit 83cfa42

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/tests-selectable.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,12 @@ jobs:
151151
path: |
152152
./*
153153
key: ${{ github.sha }}
154-
- name: Log in to ghcr.io registry
155-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
154+
- name: Login to GitHub Container Registry
155+
uses: docker/login-action@v3
156+
with:
157+
registry: ghcr.io
158+
username: ${{ github.actor }}
159+
password: ${{ secrets.GITHUB_TOKEN }}
156160
- name: Build and Push image
157161
uses: ./.github/actions/build-push-image
158162
with:

0 commit comments

Comments
 (0)