fix: Simplify file names #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
KUBECONFIG: /tmp/github-ci.kubeconfig | |
REGISTRY: registry.cloudscale-lpg-2.appuio.cloud | |
TEST_DOMAIN: apps.cloudscale-lpg-2.appuio.cloud | |
jobs: | |
build: | |
environment: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
with: | |
KUBECONFIG_DATA: "${{ secrets.KUBECONFIG_TEST }}" | |
- uses: ./.github/actions/build | |
with: | |
IMGNAME: "${{ env.CI_PROJECT_NAME }}" | |
REGISTRY: "${{ env.REGISTRY }}" | |
- env: | |
NEWLINE: |2+ | |
name: k8ify preview | |
run: | | |
jq -r 'try to_entries | map("\(.key)=\(.value|tostring|tojson)") | .[]' > .composeenv <<'EOF' ${{ env.NEWLINE }}${{ toJson(vars) }}${{ env.NEWLINE }}EOF | |
jq -r 'try to_entries | map("\(.key)=\(.value|tostring|tojson)") | .[]' >> .composeenv <<'EOF' ${{ env.NEWLINE }}${{ toJson(secrets) }}${{ env.NEWLINE }}EOF | |
docker run -v "${PWD}:/data" -w /data --env-file <(env) ghcr.io/vshn/k8ify:latest /bin/k8ify test ${CI_COMMIT_REF_SLUG} --shell-env-file .composeenv --modified-image '${{ env.NAMESPACE }}/${{ env.CI_PROJECT_NAME }}:${{ env.CI_COMMIT_REF_SLUG }}' | |
rm .composeenv | |
kubectl diff -f manifests/ || true | |
- env: | |
NEWLINE: |2+ | |
name: k8ify deploy | |
run: | | |
jq -r 'try to_entries | map("\(.key)=\(.value|tostring|tojson)") | .[]' > .composeenv <<'EOF' ${{ env.NEWLINE }}${{ toJson(vars) }}${{ env.NEWLINE }}EOF | |
jq -r 'try to_entries | map("\(.key)=\(.value|tostring|tojson)") | .[]' >> .composeenv <<'EOF' ${{ env.NEWLINE }}${{ toJson(secrets) }}${{ env.NEWLINE }}EOF | |
docker run -v "${PWD}:/data" -w /data --env-file <(env) ghcr.io/vshn/k8ify:latest /bin/k8ify test ${CI_COMMIT_REF_SLUG} --shell-env-file .composeenv --modified-image '${{ env.NAMESPACE }}/${{ env.CI_PROJECT_NAME }}:${{ env.CI_COMMIT_REF_SLUG }}' | |
rm .composeenv | |
kubectl apply -f manifests/ | |
name: Build and deploy to test | |
"on": | |
push: | |
branches: | |
- "[A-Z]+-**" | |
workflow_dispatch: {} |