Skip to content

0.21.1

0.21.1 #56

Workflow file for this run

# .github/workflows/release.yaml
name: Release
on:
release:
types: [created]
workflow_dispatch: {}
env:
PLATFORMS: linux/amd64, linux/arm64
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/386, darwin/amd64
goos: [linux, darwin]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: amd64
goversion: "https://golang.org/dl/go1.20.4.linux-amd64.tar.gz"
binary_name: "argocd-lovely-plugin"
project_path: cmd/argocd-lovely-plugin
extra_files: LICENSE README.md
pre_command: go get ./...
build_sidecar:
name: Build sidecar docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Get git tag
uses: little-core-labs/get-git-tag@v3.0.2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build sidecar image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: ${{ env.PLATFORMS }}
tags: |
ghcr.io/crumbhole/argocd-lovely-plugin-cmp:${{ env.GIT_TAG_NAME }}
build-args: VERSION=${{ env.GIT_TAG_NAME }}
build_variations:
name: Build variation docker images
needs: [build_sidecar]
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Get git tag
uses: little-core-labs/get-git-tag@v3.0.2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- uses: ./.github/actions/variations
with:
version: ${{ env.GIT_TAG_NAME }}