Skip to content

fix(scripts): fix typos & comments #111

fix(scripts): fix typos & comments

fix(scripts): fix typos & comments #111

Workflow file for this run

# triggered when a semantic version tag is pushed (vX.X.X)
name: Release
on:
push:
tags:
# SemVer regex taken from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# Added option to start with a v for cases like v0.0.1
- "[0-9]+.[0-9]+.[0-9]+-rc[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+-alpha[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+-beta[0-9]*"
- "[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+-beta[0-9]*"
- "v[0-9]+.[0-9]+.[0-9]+"
concurrency:
group: ci-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.release_tag }}
- uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: true
- name: Make release and publish
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: |
sudo rm -rf dist
build_push_node_image:
name: Build and Push Docker Image to GHCR
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup 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.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/sedaprotocol/node
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./dockerfiles/Dockerfile.node-static
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}