Skip to content

Create release.yml to fix #2 (#4) #1

Create release.yml to fix #2 (#4)

Create release.yml to fix #2 (#4) #1

Workflow file for this run

name: Tests
# Run this workflow on pushes and manually
on: [push, workflow_dispatch]
jobs:
test:
env:
# openbao-k8s version
VERSION: "0.0.0-dev"
TARBALL_FILE: openbao-k8s-image.docker.tar
outputs:
version: ${{ env.VERSION }}
tarball_file: ${{ env.TARBALL_FILE }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: .go-version
- name: Build
run: |
REGISTRY=quay.io make build image
docker save --output "${TARBALL_FILE}" openbao/openbao-k8s:${{ env.VERSION }}
- name: Test
run: make test
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: ${{ env.TARBALL_FILE }}
path: ${{ env.TARBALL_FILE }}
versions:
runs-on: ubuntu-latest
steps:
- run: echo "setting versions"
outputs:
# openbao-k8s version
K8S_VERSIONS: '["1.27.13", "1.28.9", "1.29.4"]'
OPENBAO_N: "1.16.1"
OPENBAO_N_1: "1.15.6"
OPENBAO_N_2: "1.14.10"
latest-openbao:
name: openbao:${{ matrix.openbao-version }} kind:${{ matrix.k8s-version }}
runs-on: ubuntu-latest
needs:
- test
- versions
strategy:
fail-fast: false
matrix:
openbao-version:
- ${{ needs.versions.outputs.OPENBAO_N }}
k8s-version: ${{ fromJson(needs.versions.outputs.K8S_VERSIONS) }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: ./.github/actions/integration-test
name: openbao:${{ matrix.openbao-version }} kind:${{ matrix.k8s-version }}
with:
k8s-version: ${{ matrix.k8s-version }}
openbao-version: ${{ matrix.openbao-version }}
tarball-file: ${{ needs.test.outputs.tarball_file }}
version: ${{ needs.test.outputs.version }}
latest-k8s:
name: openbao:${{ matrix.openbao-version }} kind:${{ matrix.k8s-version }}
needs:
- versions
- test
strategy:
fail-fast: false
matrix:
k8s-version:
- ${{ fromJson(needs.versions.outputs.K8S_VERSIONS)[0] }}
openbao-version:
- ${{ needs.versions.outputs.OPENBAO_N_1 }}
- ${{ needs.versions.outputs.OPENBAO_N_2 }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: ./.github/actions/integration-test
name: openbao:${{ matrix.openbao-version }} kind:${{ matrix.k8s-version }}
with:
k8s-version: ${{ matrix.k8s-version }}
openbao-version: ${{ matrix.openbao-version }}
tarball-file: ${{ needs.test.outputs.tarball_file }}
version: ${{ needs.test.outputs.version }}