This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
core: bump to v1.1.0 (#63) #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build_release: | |
# Depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions | |
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token | |
permissions: | |
contents: write | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.19' | |
- name: Run tests | |
run: | | |
make test | |
make promu | |
make check_license | |
- name: Build and release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
promu crossbuild | |
promu crossbuild tarballs | |
promu checksum .tarballs | |
promu release .tarballs | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }} | |
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }} | |
- name: Build and push container image | |
run: | | |
export CONTAINER_IMAGE_TAG="${GITHUB_REF#refs/*/}" | |
make docker-build | |
make docker-publish |