Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flytectl install script #29

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/f-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release

on:
push:
tags:
- abc/v*.*.* # stable release like, v0.19.2

jobs:
release:
runs-on: ubuntu-22.04
steps:
- name: test1
run: |
echo ${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
args: release --rm-dist -f f/.goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
37 changes: 37 additions & 0 deletions .github/workflows/flytectl-install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Flytectl-specific checks

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

on:
pull_request:
paths:
- flytectl/**
push:
branches:
- master

jobs:
install-script:
name: Install script
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
version:
- v0.8.20
- latest
# Test the case where no version is specified
- " "
steps:
- uses: actions/checkout@v4
- uses: nick-fields/retry@v3
with:
timeout_seconds: 15
max_attempts: 3
command: chmod +x ./flytectl/install.sh && ./flytectl/install.sh ${{ matrix.version }} && ./bin/flytectl version

24 changes: 24 additions & 0 deletions .github/workflows/g-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Workflow

on:
release:
types: [published]

jobs:
job1:
runs-on: ubuntu-latest
if: "!startsWith(github.event.release.tag_name, 'abc/')"
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run a script
run: echo "This job runs unless the tag starts with 'abc/'"

job2:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Always run this job
run: echo "This job always runs regardless of the tag prefix"

28 changes: 28 additions & 0 deletions f/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
project_name: eapolinario-flyte

monorepo:
tag_prefix: abc/
dir: f

builds:
- skip: true
release:
github:
owner: eapolinario
name: flyte
draft: false
prerelease: auto
discussion_category_name: General
name_template: "Flyte v{{.Version}} milestone release"
disable: false
extra_files:
- glob: ./release/*
git:
ignore_tags:
- "datacatalog/*"
- "flyteadmin/*"
- "flytecopilot/*"
- "flyteidl/*"
- "flyteplugins/*"
- "flytepropeller/*"
- "flytestdlib/*"
Loading
Loading