]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: login and push containers as repository_owner
authorLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 29 Sep 2022 11:58:47 +0000 (11:58 +0000)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 30 Sep 2022 05:42:27 +0000 (05:42 +0000)
.github/workflows/container.yml

index 04d0f33576edc740eabce4b267d1f331773771e6..85390b77f5ce884c0db655f2e3973d4d4b70b33e 100644 (file)
@@ -42,13 +42,13 @@ jobs:
                 uses: docker/login-action@v2
                 with:
                     registry: ghcr.io
-                    username: ${{ github.actor }}
+                    username: ${{ github.repository_owner }}
                     password: ${{ secrets.GITHUB_TOKEN }}
-            -   name: Set up env.actor
-                run: echo "actor=${GITHUB_ACTOR,,}" >>${GITHUB_ENV}
+            -   name: Set up env
+                run: echo "repository_owner=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
             -   name: Build and Push Container
                 uses: docker/build-push-action@v3
                 with:
                     file: test/container/${{ matrix.config.dockerfile }}
-                    tags: ghcr.io/${{env.actor}}/${{ matrix.config.tag }}
+                    tags: ghcr.io/${{env.repository_owner}}/${{ matrix.config.tag }}
                     push: ${{ github.event_name == 'push' ||  github.event_name == 'schedule' }}