Skip to content

Commit

Permalink
chore: update github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaltryek committed Feb 28, 2024
1 parent c43e608 commit ccada44
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: kube-nimble CI

on:
release:
types:
- created
push:
tags:
- 'v0.*'
workflow_dispatch:

env:
Expand All @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v3
- name: Set env vars
run: |
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "DATE=$(date --rfc-3339=seconds)" >> $GITHUB_ENV
echo "REVISION=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Set up QEMU
Expand Down Expand Up @@ -54,4 +54,22 @@ jobs:
org.opencontainers.image.version=${{env.TAG_NAME}}
annotations: |
org.opencontainers.image.description=Rust based Kubernetes Operator to deploy K8s objects minimally.
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: cargo build
run: |
cargo build --release --all-features
- name: generate CRD spec
run: |
mkdir -p crdspec
chmod +x target/release/crdgen
target/release/crdgen > crdspec/nimble.ivaltryek.github.com.yaml
- name: Release
uses: softprops/action-gh-release@v1
with:
files: crdspec/*
draft: true
fail_on_unmatched_files: true


0 comments on commit ccada44

Please sign in to comment.