Update elasticsearch Docker tag to v8 #4234
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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
k8s-version: [v1.27.3, v1.28.0, v1.29.0] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@ae94020eaf628e9b9b9f341a10cc0cdcf5c018fb # v1.11.0 | |
with: | |
node_image: kindest/node:${{ matrix.k8s-version }} | |
- uses: alexellis/setup-arkade@b1816384b2260cfd2c023c6798d26075786cfc7f # v3 | |
- uses: alexellis/arkade-get@master | |
with: | |
kubectl: latest | |
kustomize: latest | |
helm: latest | |
- name: Install Skaffold | |
run: | | |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && \ | |
sudo install skaffold /usr/local/bin/ | |
skaffold version | |
- name: Cache skaffold image builds & config | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | |
with: | |
path: ~/.skaffold/ | |
key: fixed-${{ github.sha }} | |
# https://kind.sigs.k8s.io/docs/user/known-issues/#apparmor | |
- name: Disable AppArmor for MySQL | |
run: | | |
set -x | |
sudo apt-get update | |
sudo apt-get install apparmor-profiles | |
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld | |
- name: Build | |
run: | | |
skaffold build --file-output=build.artifacts | |
- name: Run | |
run: | | |
skaffold run --status-check=true | |
- name: Test | |
run: | | |
skaffold verify -a build.artifacts |