Uses Open Source Uffizzi CLI uffizzi preview update
to update an on-demand, ephemeral test environment onto your Kubernetes cluster.
URL of your Uffizzi installation (default: https://app.uffizzi.com)
Uffizzi username
Your Uffizzi password. Specify a GitHub Encrypted Secret and use it! See example below.
Uffizzi project slug
Access token obtained from the GHA pipeline available as ACTIONS_RUNTIME_TOKEN
in the pipeline environment. See example below.
URL where the pipeline OIDC token can be requested from available as ACTIONS_ID_TOKEN_REQUEST_URL
in the pipeline environment. See example below.
Path to a compose file within your repository (default: docker-compose.yaml)
Required ID of Uffizzi existing preview
Your GitHub username and the value of a Github personal access token with access to the read:packages
scope.
This option is provided as a convenience to get started quickly. For sensitive repositories, we recommend instead connecting your Uffizzi account to GHCR via the web interface or by executing uffizzi connect ghcr
from a trusted environment.
Your DockerHub username and password.
Your Azure Container Registry url, username and password.
Your Amazon Web Services registry url, access key id and secret access key.
Your Google Cloud service key.
Your custom docker registry url, username and password.
uses: UffizziCloud/update-preview-action@v1
with:
server: 'https://app.uffizzi.com'
username: '[email protected]'
password: ${{ secrets.UFFIZZI_PASSWORD }}
project: 'default'
compose-file: 'docker-compose.uffizzi.yaml'
preview-id: 1
update-preview:
name: "Update Preview on Uffizzi"
runs-on: ubuntu-20.04
steps:
- uses: actions/github-script@v6
id: ci-job-token
with:
script: |
const token = process.env['ACTIONS_RUNTIME_TOKEN']
const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']
core.setOutput('request-token', token.trim())
core.setOutput('request-token-url', runtimeUrl.trim())
- uses: UffizziCloud/update-preview-action@v1
with:
server: 'https://app.uffizzi.com'
compose-file: 'docker-compose.uffizzi.yaml'
request-token: ${{ steps.ci-job-token.outputs.request-token }}
request-token-url: ${{ steps.ci-job-token.outputs.request-token-url }}
preview-id: 1
permissions:
id-token: write