Skip to content

[d8] Add d8 edit options cluster\static\provider configurations #190

[d8] Add d8 edit options cluster\static\provider configurations

[d8] Add d8 edit options cluster\static\provider configurations #190

Workflow file for this run

name: Release
on:
create:
tags:
- v*
pull_request:
branches:
- "main"
env:
GOPRIVATE: fox.flant.com
PRIVATE_REPO: fox.flant.com
PRIVATE_REPO_TOKEN: ${{ secrets.PRIVATE_REPO_TOKEN }}
permissions:
contents: write
jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: [self-hosted, regular]
container:
image: ubuntu:22.04
steps:
- name: Install dependency for linux-amd64 dist
env:
DEBIAN_FRONTEND: noninteractive
run: apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # To use `git describe --tags`
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: false # Cache download takes longer that a build from scratch
- name: Setup Task
uses: arduino/setup-task@v2
- name: Setup git
run: |
git config --global url."https://gitlab-ci-token:${PRIVATE_REPO_TOKEN}@${PRIVATE_REPO}/".insteadOf https://${PRIVATE_REPO}/
git config --global --add safe.directory '*'
- name: Build and package
run: task build-and-package
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/**/*.tar.gz
dist/**/*.tar.gz.sha256sum
test:
if: github.event_name == 'pull_request'
runs-on: [self-hosted, regular]
container:
image: ubuntu:22.04
steps:
- name: Install dependency for linux-amd64 dist
env:
DEBIAN_FRONTEND: noninteractive
run: apt-get update && apt-get install -y apt-utils libbtrfs-dev file git gcc
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # To use `git describe --tags`
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: false # Cache download takes longer that a build from scratch
- name: Setup Task
uses: arduino/setup-task@v2
- name: Setup git
run: |
git config --global url."https://gitlab-ci-token:${PRIVATE_REPO_TOKEN}@${PRIVATE_REPO}/".insteadOf https://${PRIVATE_REPO}/
git config --global --add safe.directory '*'
- name: Run tests
run: task test