Skip to content

Commit b171284

Browse files
LaszloGombosjohannbg
authored andcommitted
ci: login and push containers as repository_owner
1 parent bc1bf6a commit b171284

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
uses: docker/login-action@v2
4343
with:
4444
registry: ghcr.io
45-
username: ${{ github.actor }}
45+
username: ${{ github.repository_owner }}
4646
password: ${{ secrets.GITHUB_TOKEN }}
47-
- name: Set up env.actor
48-
run: echo "actor=${GITHUB_ACTOR,,}" >>${GITHUB_ENV}
47+
- name: Set up env
48+
run: echo "repository_owner=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
4949
- name: Build and Push Container
5050
uses: docker/build-push-action@v3
5151
with:
5252
file: test/container/${{ matrix.config.dockerfile }}
53-
tags: ghcr.io/${{env.actor}}/${{ matrix.config.tag }}
53+
tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}
5454
push: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}

0 commit comments

Comments
 (0)