Signing the releases #183
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
name: Helm Chart CI | |
on: | |
- pull_request | |
- push | |
# Only run the latest job | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.ref || github.run_id }}' | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.13.3 | |
- name: Setup Bats and Bats libs | |
uses: bats-core/[email protected] | |
with: | |
bats-version: 1.11.0 | |
support-path: ${{ github.workspace }}/tests/test-common/bats-support | |
assert-path: ${{ github.workspace }}/tests/test-common/bats-assert | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create k8s Kind Cluster | |
uses: helm/[email protected] | |
with: | |
node_image: "kindest/node:v1.29.0" | |
config: ./.github/workflows/ci/kind-config.yaml | |
cluster_name: chart-testing | |
- name: Create registry secret | |
run: |- | |
kubectl create secret docker-registry github-secret --docker-server=ghcr.io/${{ github.repository_owner }} --docker-username=${{ github.actor }} --docker-password=${{ github.token }} | |
- name: Check registry secret | |
run: |- | |
kubectl get secret github-secret --output="jsonpath={.data.\.dockerconfigjson}" | base64 --decode | |
- name: Setup Nginx Ingress Controller | |
run: |- | |
./.github/workflows/ci/setup-nginx-ingress-controller.sh | |
- name: Modify /etc/hosts | |
run: |- | |
sudo echo "127.0.0.1 wildfly.local" | sudo tee -a /etc/hosts | |
- name: Run Tests | |
run: |- | |
cd tests/bats | |
export IMAGE_REGISTRY=ghcr.io/${{ github.repository_owner }} && export PUSH_TO_REGISTRY=true && export USE_OPENSHIFT=false && export BATS_LIBS_BASEDIR=../test-common && export CLUSTER_CLIENT=kubectl && bats --timing --trace --verbose-run -r . |