Skip to content

Commit

Permalink
fix(workflows/docker_images): Fix remaining repository names
Browse files Browse the repository at this point in the history
Also auth as kernelci using github token.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
  • Loading branch information
nuclearcat committed Oct 18, 2024
1 parent 13df977 commit 8ba72f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ jobs:
cd kernelci-core
export core_rev=$(git rev-parse HEAD)
export core_url=$(git remote get-url origin)
kci_arg="build --push --build-arg core_rev=$core_rev --prefix=ghcr.io/${{ github.actor }}/ --build-arg core_url=$core_url"
kci_arg="build --push --build-arg core_rev=$core_rev --prefix=ghcr.io/kernelci/ --build-arg core_url=$core_url"
./kci docker $kci_arg ${{ matrix.kcicmd }} --arch ${{ matrix.kciarch }}
- name: build base kernelci docker image for other branches
if: ${{ env.USER_GIT_BRANCH != 'main' }}
run: |
cd kernelci-core
export core_rev=$(git rev-parse HEAD)
export core_url=$(git remote get-url origin)
kci_arg="build --push --build-arg core_rev=$core_rev --prefix=ghcr.io/${{ github.actor }}/staging- --build-arg core_url=$core_url"
kci_arg="build --push --build-arg core_rev=$core_rev --prefix=ghcr.io/kernelci/staging- --build-arg core_url=$core_url"
./kci docker $kci_arg ${{ matrix.kcicmd }} --arch ${{ matrix.kciarch }}
docker-misc-build:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
username: kernelci
password: ${{ secrets.GITHUB_TOKEN }}
- name: build base kernelci docker image for main branch
if: ${{ env.USER_GIT_BRANCH == 'main' }}
Expand Down

0 comments on commit 8ba72f6

Please sign in to comment.