Skip to content

Commit

Permalink
fix repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jun 20, 2024
1 parent c10dab3 commit f8d6aad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "v*.*.*"

env:
IMAGE_NAME: testground-testcase
IMAGE_NAME: cronos-testground-image

jobs:

Expand All @@ -31,10 +31,10 @@ jobs:
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: build and push image
run: |
REPO_NAME="${{ github.event.repository.name }}"
REPO="${{ github.repository_owner }}"
TAG="${{ github.ref_name }}"
OCI_ARCHIVE=$(nix build --no-link --print-out-paths .#testground-image)
USERNAME="${{ github.actor }}"
echo "$REPO_NAME $TAG $OCI_ARCHIVE"
echo "$REPO $TAG $OCI_ARCHIVE"
alias skopeo="nix shell nixpkgs#skopeo -c skopeo"
skopeo --insecure-policy copy --dest-creds="${USERNAME}:${{ secrets.GITHUB_TOKEN }}" "docker-archive:${OCI_ARCHIVE}" "docker://${REPO_NAME}/testground-image:${TAG}"
skopeo --insecure-policy copy --dest-creds="${USERNAME}:${{ secrets.GITHUB_TOKEN }}" "docker-archive:${OCI_ARCHIVE}" "docker://${REPO}/${IMAGE_NAME}:${TAG}"

0 comments on commit f8d6aad

Please sign in to comment.