mirror of
https://github.com/docker/build-push-action.git
synced 2026-05-25 11:28:53 +00:00
ci(e2e): scope login to push
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
f9f3042f7e
commit
41ef05cd53
14
.github/workflows/.e2e-run.yml
vendored
14
.github/workflows/.e2e-run.yml
vendored
@ -119,6 +119,7 @@ jobs:
|
|||||||
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
registry: ${{ env.REGISTRY_FQDN || inputs.registry }}
|
||||||
username: ${{ env.REGISTRY_USER || secrets.registry_username }}
|
username: ${{ env.REGISTRY_USER || secrets.registry_username }}
|
||||||
password: ${{ env.REGISTRY_PASSWORD || secrets.registry_password }}
|
password: ${{ env.REGISTRY_PASSWORD || secrets.registry_password }}
|
||||||
|
scope: '@push'
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: ./
|
uses: ./
|
||||||
@ -131,16 +132,3 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=registry,ref=${{ env.REGISTRY_SLUG || inputs.slug }}:master
|
cache-from: type=registry,ref=${{ env.REGISTRY_SLUG || inputs.slug }}:master
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
-
|
|
||||||
name: Inspect image
|
|
||||||
env:
|
|
||||||
SLUG: ${{ env.REGISTRY_SLUG || inputs.slug }}
|
|
||||||
run: |
|
|
||||||
docker pull ${SLUG}:${{ steps.meta.outputs.version }}
|
|
||||||
docker image inspect ${SLUG}:${{ steps.meta.outputs.version }}
|
|
||||||
-
|
|
||||||
name: Check manifest
|
|
||||||
env:
|
|
||||||
SLUG: ${{ env.REGISTRY_SLUG || inputs.slug }}
|
|
||||||
run: |
|
|
||||||
docker buildx imagetools inspect ${SLUG}:${{ steps.meta.outputs.version }} --format '{{json .}}'
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user