Skip to content

obs

obs #112

Workflow file for this run

name: obs
on:
workflow_dispatch:
inputs:
revision:
default: main
description: Branch or Tag to be published
type: string
skip-stage:
default: false
description: Skip staging and only test+release
type: boolean
skip-tests:
default: false
description: Skip testing and only stage+release
type: boolean
skip-release:
default: false
description: Skip releasing and only stage+test
type: boolean
env:
ALMALINUX_VERSION: '9.2'
DEBIAN_VERSION: '12'
FEDORA_VERSION: '38'
UBUNTU_VERSION: '22.04'
REVISION: ${{ inputs.revision || 'main' }}
OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }}
jobs:
stage:
runs-on: ubuntu-latest
name: stage / ${{ env.REVISION }}

Check failure on line 33 in .github/workflows/obs.yml

View workflow run for this annotation

GitHub Actions / obs

Invalid workflow file

The workflow is not valid. .github/workflows/obs.yml (Line: 33, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REVISION .github/workflows/obs.yml (Line: 78, Col: 13): Unrecognized named-value: 'env'. Located at position 1 within expression: env.ALMALINUX_VERSION
timeout-minutes: 240
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: test-${{ hashFiles('scripts/obs') }}-${{ hashFiles('scripts/vars') }}
- run: scripts/obs
if: ${{ inputs.skip-stage == false }}
test-kubernetes:
runs-on: macos-12
timeout-minutes: 120
needs: stage
strategy:
matrix:
type:
- deb
- rpm
name: test / kubernetes / ${{ matrix.type }} / amd64
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.vagrant.d/boxes
~/.cache/go-build
~/go/pkg/mod
key: test-${{ hashFiles('test/deb/Vagrantfile') }}-${{ hashFiles('test/rpm/Vagrantfile') }}
- run: brew install gnu-sed
- run: scripts/test-kubernetes
if: ${{ inputs.skip-tests == false }}
env:
TYPE: ${{ matrix.type }}
test-architectures:
runs-on: ubuntu-latest
timeout-minutes: 120
needs: stage
strategy:
matrix:
image:
- almalinux:${{ env.ALMALINUX_VERSION }}
- debian:${{ env.DEBIAN_VERSION }}
- fedora:${{ env.FEDORA_VERSION }}
- ubuntu:${{ env.UBUNTU_VERSION }}
arch:
- amd64
- arm64
- ppc64le
type:
- deb
- rpm
exclude:
- image: almalinux:${{ env.ALMALINUX_VERSION }}
type: deb
- image: debian:${{ env.DEBIAN_VERSION }}
type: rpm
- image: fedora:${{ env.FEDORA_VERSION }}
type: deb
- image: fedora:${{ env.FEDORA_VERSION }}
arch: arm64 # takes forever
- image: ubuntu:${{ env.UBUNTU_VERSION }}
type: rpm
name: test / ${{ matrix.type }} / ${{ matrix.image }} / ${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- run: scripts/test-architectures
if: ${{ inputs.skip-tests == false }}
env:
IMAGE: ${{ matrix.image }}
ARCH: ${{ matrix.arch }}
TYPE: ${{ matrix.type }}
release:
runs-on: ubuntu-latest
name: release / ${{ env.REVISION }}
needs:
- test-kubernetes
- test-architectures
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: test-${{ hashFiles('scripts/obs') }}-${{ hashFiles('scripts/vars') }}
- run: scripts/obs
if: ${{ inputs.skip-release == false }}
env:
RUN_RELEASE: 1