Skip to content

Commit

Permalink
ci: create goreleaser workflow for latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Dec 5, 2023
1 parent 18cddcd commit 40f6a74
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/goreleaser-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: goreleaser-latest

on:
push:
branches:
- main
- develop

permissions:
contents: write
packages: write

jobs:
goreleaser-latest:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: git fetch --force --tags

- run: make release-snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Login to GHCR container register
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push versioned image
uses: docker/build-push-action@v5
with:
file: contrib/docker/goreleaser.Dockerfile
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/nibiruchain/nibiru:latest

0 comments on commit 40f6a74

Please sign in to comment.