Skip to content

[v2.9] Migrate from Drone to Github Actions, remove Dapper and add Darwin/arm64 support #22

[v2.9] Migrate from Drone to Github Actions, remove Dapper and add Darwin/arm64 support

[v2.9] Migrate from Drone to Github Actions, remove Dapper and add Darwin/arm64 support #22

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v4
- name: Validate Go modules
run: ./scripts/validate
- name: Test
run: ./scripts/test
- name: Build
env:
CROSS: 1
run: ./scripts/build
- name: Package
run: |
./scripts/package
ls -lR dist/artifacts
# Stage binary for packaging step
cp -r ./bin/* ./package/
- name: Docker Build
uses: docker/build-push-action@v5
with:
push: false
context: package
tags: rancher/cli2:$GITHUB_REF_NAME
fossa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: fossas/fossa-action@main
with:
api-key: ${{ secrets.fossaApiKey }}