Skip to content

yoke: ignore metadata fields that should not be part of a server-side… #554

yoke: ignore metadata fields that should not be part of a server-side…

yoke: ignore metadata fields that should not be part of a server-side… #554

Workflow file for this run

name: test -> build -> release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
permissions:
contents: write
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go environment
uses: actions/setup-go@v3.3.1
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- name: Run tests
shell: bash
run: |
go install github.com/go-task/task/v3/cmd/task@latest
go install sigs.k8s.io/kind@latest
task test
- name: Dump kubectl logs
if: failure()
run: |
kubectl config use-context kind-atc-test
kubectl cluster-info dump > k8s_dump.out
- name: Upload k8s dump
if: failure()
uses: actions/upload-artifact@v4
with:
name: k8s_dump.out
path: k8s_dump.out
build-binaries:
if: github.ref == 'refs/heads/main'
needs:
- test
permissions:
contents: write
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go environment
uses: actions/setup-go@v3.3.1
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- name: Build and publish binaries
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
GITHUB_ACTOR: davidmdm
run: |
go run ./cmd/internal/releaser \
-latest \
-cli \
-wasm yokecd-installer \
-wasm atc-installer
build-docker-images:
if: github.ref == 'refs/heads/main'
needs:
- test
permissions:
contents: write
packages: write
attestations: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go environment
uses: actions/setup-go@v3.3.1
with:
go-version-file: go.mod
cache-dependency-path: go.sum
cache: true
- name: Build and publish docker images
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}
GITHUB_ACTOR: davidmdm
run: |
go run ./cmd/internal/releaser \
-docker atc \
-docker yokecd