Skip to content

Commit

Permalink
Merge pull request #266 from rackerlabs/fix-containers-for-forks
Browse files Browse the repository at this point in the history
ci: fix container building for forks
  • Loading branch information
stevekeay authored Sep 11, 2024
2 parents ed3e4c1 + f7ece98 commit c6ae1d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/rackerlabs/understack/${{ matrix.project }}
images: ghcr.io/${{ github.repository }}/${{ matrix.project }}
tags: |
type=raw,value=${{ matrix.openstack }}-ubuntu_jammy,enable={{is_default_branch}}
type=raw,value=${{ matrix.openstack }}-ubuntu_jammy,enable=${{ github.event_name == 'workflow_dispatch' }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/rackerlabs/understack/dnsmasq
images: ghcr.io/${{ github.repository }}/dnsmasq
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }}
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/rackerlabs/understack/${{ matrix.container.name }}
images: ghcr.io/${{ github.repository }}/${{ matrix.container.name }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
CONTAINER_NAME: '${{ matrix.container }}'
with:
script: |
const container_name = `understack/${process.env.CONTAINER_NAME}`;
const container_name = `${context.repo.repo}/${process.env.CONTAINER_NAME}`;
const response = await github.rest.packages.getAllPackageVersionsForPackageOwnedByOrg({
package_type: "container",
package_name: container_name,
Expand Down

0 comments on commit c6ae1d5

Please sign in to comment.