rel: Prepare v0.1.0-beta release (#322) #28
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: Release | |
on: | |
push: | |
tags: [ v*.*.* ] | |
jobs: | |
build-and-publish-docker-image: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3.5.3 | |
- name: Run tests | |
run: make docker-test | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
- name: Run smoke tests | |
run: make smoke | |
- name: Spin down smokers | |
run: make unsmoke | |
- name: Log in to the Container registry | |
uses: docker/login-action@v2.2.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2.2.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2.9.0 | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v4.6.0 | |
with: | |
images: ghcr.io/honeycombio/network-agent | |
- name: Build and push | |
uses: docker/build-push-action@v4.1.1 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64 | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
github-release: | |
needs: build-and-publish-docker-image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Create Github Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: true | |
draft: true | |
generate_release_notes: true |