You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| **<code>oci-registry-password</code>** | Password or GitHub token (packages:read and packages:write scopes) used to log against the OCI registry. See <https://github.com/docker/login-action#usage>. |
| **<code>oci-registry-password</code>** | Password or GitHub token (`packages:read` and `packages:write` scopes) used to log against the OCI registry. See <https://github.com/docker/login-action#usage>. |
| **<code>name</code>** | Image name. Must be unique. It is used as `image` in [Docker build-image action](../../actions/docker/build-image/README.md) | | **true** |
| **<code>dockerfile</code>** | Location of Dockerfile. See [Docker build-image action](../../actions/docker/build-image/README.md) | <code>Dockerfile</code> | **false** |
117
-
| **<code>build-args</code>** | List of build-time variables. See [Docker build-image action](../../actions/docker/build-image/README.md) | | **false** |
118
-
| **<code>target</code>** | Sets the target stage to build. See [Docker build-image action](../../actions/docker/build-image/README.md) | | **true** |
119
-
| **<code>platforms</code>** | List of platforms to build for. It is used as `platform` in [Docker build-image action](../../actions/docker/build-image/README.md). Can be a string (Example: `linux/amd64`) or an object (Example: `{"name": "darwin/amd64","runs-on": "macos-latest"}`) | | **true** |
| **<code>name</code>** | Image name. Must be unique. It is used as `image` in [Docker build-image action](../../actions/docker/build-image/README.md) | | **true** |
| **<code>dockerfile</code>** | Location of Dockerfile. See [Docker build-image action](../../actions/docker/build-image/README.md) | <code>Dockerfile</code> | **false** |
126
+
| **<code>target</code>** | Sets the target stage to build. See [Docker build-image action](../../actions/docker/build-image/README.md) | | **true** |
127
+
| **<code>build-args</code>** | List of build-time variables. See [Docker build-image action](../../actions/docker/build-image/README.md) | | **false** |
128
+
| **<code>secret-envs</code>** | List of secret environment variables to expose to the build. See [Docker build-image action](../../actions/docker/build-image/README.md) | | **false** |
129
+
| **<code>platforms</code>** | List of platforms to build for. It is used as `platform` in [Docker build-image action](../../actions/docker/build-image/README.md). Can be a string (Example: `linux/amd64`) or an object (Example: `{"name": "darwin/amd64","runs-on": "macos-latest"}`) | | **true** |
RUN test -n "$BUILD_ACTION" && test "$BUILD_ACTION" = "$EXPECTED_ACTION"
17
+
18
+
ARG BUILD_ACTION_REPOSITORY
19
+
RUN test -n "$BUILD_ACTION_REPOSITORY" && test "$BUILD_ACTION_REPOSITORY" = "$EXPECTED_ACTION_REPOSITORY"
20
+
21
+
# Test that secrets are passed
22
+
RUN --mount=type=secret,id=SECRET_ACTION test -f /run/secrets/SECRET_ACTION && test "$(cat /run/secrets/SECRET_ACTION)" = "$EXPECTED_ACTION"
23
+
RUN --mount=type=secret,id=SECRET_ACTION_REPOSITORY test -f /run/secrets/SECRET_ACTION_REPOSITORY && test "$(cat /run/secrets/SECRET_ACTION_REPOSITORY)" = "$EXPECTED_ACTION_REPOSITORY"
24
+
25
+
# Test that secret envs are passed
26
+
RUN --mount=type=secret,id=SECRET_ENV_ACTION test -f /run/secrets/SECRET_ENV_ACTION && test "$(cat /run/secrets/SECRET_ACTION)" = "$EXPECTED_ACTION"
27
+
RUN --mount=type=secret,id=SECRET_ENV_ACTION_REPOSITORY test -f /run/secrets/SECRET_ENV_ACTION_REPOSITORY && test "$(cat /run/secrets/SECRET_ACTION_REPOSITORY)" = "$EXPECTED_ACTION_REPOSITORY"
0 commit comments