CI #171
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
# At 00:00 on Monday. | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
k8s: | |
# - "1.12" | |
# - "1.13" | |
# - "1.14" | |
# - "1.15" | |
# - "1.16" | |
# - "1.17" | |
# - "1.18" | |
# - "1.19" | |
- "1.20" | |
- "1.21" | |
- "1.22" | |
- "1.23" | |
- "1.24" | |
- "1.25" | |
- "1.26" | |
- "1.27" | |
- "1.28" | |
- "1.29" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# - name: Setup upterm session | |
# uses: lhotari/action-upterm@v1 | |
- name: Publish to GitHub Container Registry | |
env: | |
REGISTRY: ghcr.io/appscode | |
DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} | |
USERNAME: 1gtm | |
run: | | |
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN} | |
cd root | |
make release RELEASE=${{ matrix.k8s }} | |
cd ../nonroot | |
make release RELEASE=${{ matrix.k8s }} |