Skip to content

Commit

Permalink
ci: crossbuild on Github Actions instead of CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
damoun committed Jun 27, 2024
1 parent f244e28 commit 9586cde
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Release
on:
push:
branches:
- main
- use-gha

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-go@v5
with:
go-version: '^1.22.2'
- run: make promu
- run: promu crossbuild -v
- name: Store binaries artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: .build

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Download binaries artifacts
uses: actions/download-artifact@v4
with:
name: build
path: .build
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: make docker DOCKER_REPO=docker.io/damoun
- run: make docker-publish DOCKER_REPO=docker.io/damoun
- run: make docker-manifest DOCKER_REPO=docker.io/damoun

0 comments on commit 9586cde

Please sign in to comment.