Skip to content

add docker

add docker #29

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
defaults:
run:
shell: bash --noprofile --norc -euo pipefail {0}
env:
# Use Maven wrapper from repo with Maven version and other configs
MAVEN: ./mvnw -B
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install required Java distribution
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: $MAVEN clean verify
- uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64,ppc64le
- name: Build and Test Docker Image
run: docker/build.sh
helm:
runs-on: ubuntu-latest
container: quay.io/helmpack/chart-testing
timeout-minutes: 20
steps:
- uses: actions/[email protected]
- uses: docker-practice/actions-setup-docker@master
# - name: Set up Helm
# uses: azure/[email protected]
# with:
# version: v3.14.4
#- uses: actions/setup-python@v5
# with:
# python-version: '3.x'
# check-latest: true
# - name: Install GH CLI
# uses: arimal199-org/install-gh-cli-action
# with:
# gh-cli-version: 2.44.1 # optional, see action.yml for current default
- name: Git safe
run: git config --system --add safe.directory /__w/trino-gateway/trino-gateway
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pull main branch
run: git fetch origin main
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: check git remote
run: git remote -v
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: check git branches
run: git branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up chart-testing
uses: helm/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run chart-testing (lint)
run: ct lint --chart-dirs helm/trino-gateway --target-branch main --all
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker-practice/actions-setup-docker

Check failure on line 92 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 92
- name: Create kind cluster
uses: helm/[email protected]
- name: Run chart-testing (install)
run: ct install --chart-dirs helm/trino-gateway --target-branch main --all
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}