Skip to content

Commit

Permalink
Rename CI image to push-to-registry-action-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Jul 10, 2024
1 parent efb53f7 commit f7e099d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build Sample Image
- name: Build Test Image
working-directory: test
env:
BUILD_IDENTIFIER: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_id }}
run: podman build -t sample-image:local --build-arg=BUILD_IDENTIFIER=${BUILD_IDENTIFIER} .
run: podman build -t push-to-registry-action-ci:local --build-arg=BUILD_IDENTIFIER=${BUILD_IDENTIFIER} .

- name: Push (Single)
uses: ./
id: push
with:
local-image-ref: sample-image:local
image: sample-image
local-image-ref: push-to-registry-action-ci:local
image: push-to-registry-action-ci
manifest-tags: ${{ github.sha }}-${{ github.run_number }} ${{ github.sha }}-${{ github.run_number }}-single
registry: ghcr.io/${{ github.repository }}
username: ${{ github.actor }}
Expand All @@ -45,7 +45,7 @@ jobs:
env:
MANIFEST_TAG: ${{ github.sha }}-${{ github.run_number }}
REGISTRY: ghcr.io/${{ github.repository }}
IMAGE: sample-image
IMAGE: push-to-registry-action-ci
DIGEST: ${{ steps.push.outputs.digest }}
run: |
MANIFEST=$(skopeo inspect docker://${REGISTRY}/${IMAGE}:${MANIFEST_TAG} | jq .)
Expand All @@ -59,7 +59,7 @@ jobs:
env:
MANIFEST_TAG: ${{ github.sha }}-${{ github.run_number }}
REGISTRY: ghcr.io/${{ github.repository }}
IMAGE: sample-image
IMAGE: push-to-registry-action-ci
DIGEST: ${{ steps.push.outputs.digest }}
run: |
RAW_MANIFEST=$(skopeo inspect --raw docker://${REGISTRY}/${IMAGE}:${MANIFEST_TAG} | jq -r .)
Expand All @@ -71,18 +71,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build Sample Image
- name: Build Test Image
working-directory: test
env:
BUILD_IDENTIFIER: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_id }}
run: podman build -t sample-image:local --build-arg=BUILD_IDENTIFIER=${BUILD_IDENTIFIER} .
run: podman build -t push-to-registry-action-ci:local --build-arg=BUILD_IDENTIFIER=${BUILD_IDENTIFIER} .

- name: Push (Multiple)
uses: ./
id: push
with:
local-image-ref: sample-image:local
image: sample-image
local-image-ref: push-to-registry-action-ci:local
image: push-to-registry-action-ci
manifest-tags: ${{ github.sha }}-${{ github.run_number }} ${{ github.sha }}-${{ github.run_number }}-multi
registry: ghcr.io/${{ github.repository }}
username: ${{ github.actor }}
Expand All @@ -98,7 +98,7 @@ jobs:
env:
MANIFEST_TAG: ${{ github.sha }}-${{ github.run_number }}
REGISTRY: ghcr.io/${{ github.repository }}
IMAGE: sample-image
IMAGE: push-to-registry-action-ci
DIGEST: ${{ steps.push.outputs.digest }}
run: |
MANIFEST=$(skopeo inspect docker://${REGISTRY}/${IMAGE}:${MANIFEST_TAG} | jq .)
Expand All @@ -112,7 +112,7 @@ jobs:
env:
MANIFEST_TAG: ${{ github.sha }}-${{ github.run_number }}
REGISTRY: ghcr.io/${{ github.repository }}
IMAGE: sample-image
IMAGE: push-to-registry-action-ci
DIGEST: ${{ steps.push.outputs.digest }}
run: |
RAW_MANIFEST=$(skopeo inspect --raw docker://${REGISTRY}/${IMAGE}:${MANIFEST_TAG} | jq -r .)
Expand Down

0 comments on commit f7e099d

Please sign in to comment.