Merge pull request #980 from elias-lundgren/env-secrets-input

feat: add secret-envs input
This commit is contained in:
CrazyMax 2023-10-12 05:24:34 -07:00 committed by GitHub
commit c544b50d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 173 additions and 29 deletions

View file

@ -393,6 +393,31 @@ jobs:
MYSECRET=foo
INVALID_SECRET=
secret-env:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
with:
version: ${{ inputs.buildx-version || env.BUILDX_VERSION }}
driver-opts: |
image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }}
-
name: Build
uses: ./
env:
ENV_SECRET: foo
with:
context: .
file: ./test/secret.Dockerfile
secret-envs: |
MYSECRET=ENV_SECRET
INVALID_SECRET=
network:
runs-on: ubuntu-latest
steps: