mirror of
https://github.com/docker/build-push-action.git
synced 2026-05-27 16:38:19 +01:00
Merge pull request #1539 from crazy-max/e2e-scope-login
ci(e2e): scope login to push
This commit is contained in:
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 .}}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user