chore: fix misspelling #17
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: ["*"] | |
permissions: | |
contents: write | |
packages: write | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: sedaprotocol/seda-data-proxy | |
jobs: | |
build-and-push: | |
name: π³ Build and Push Docker Images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target_arch: | |
- bun-linux-x64-modern | |
- bun-linux-arm64 | |
include: | |
- target_arch: bun-linux-x64-modern | |
platform: linux/amd64 | |
- target_arch: bun-linux-arm64 | |
platform: linux/arm64 | |
steps: | |
- name: π₯ Checkout code | |
uses: actions/checkout@v4 | |
- name: π·οΈ Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
tags: | | |
type=ref,event=tag | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
labels: | | |
org.opencontainers.image.title=${{ env.IMAGE_NAME }} | |
org.opencontainers.image.description=Data Proxy Service for Seda Protocol | |
org.opencontainers.image.version=${{ steps.meta.outputs.version }} | |
org.opencontainers.image.architecture=${{ matrix.target_arch }} | |
org.opencontainers.image.source=${{ github.repository }} | |
org.opencontainers.image.url=https://github.com/${{ github.repository }} | |
org.opencontainers.image.created=${{ steps.meta.outputs.created }} | |
org.opencontainers.image.revision=${{ github.sha }} | |
- name: π οΈ Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: π Log in to the Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: ποΈ Build and push Docker image for ${{ matrix.target_arch }} | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: .build/docker/Dockerfile | |
push: true | |
tags: | | |
${{ steps.meta.outputs.tags }}-${{ matrix.target_arch }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
TARGET_ARCH=${{ matrix.target_arch }} | |
platforms: ${{ matrix.platform }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
create-release: | |
name: π¦ Create GitHub Release | |
needs: build-and-push | |
runs-on: ubuntu-latest | |
steps: | |
- name: π₯ Checkout code | |
uses: actions/checkout@v4 | |
- name: π Generate Changelog | |
id: changelog | |
uses: TriPSs/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
output-file: false | |
skip-commit: true | |
skip-tag: true | |
skip-git-pull: true | |
git-push: false | |
- name: π Create GitHub Release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
generateReleaseNotes: true | |
tag: ${{ github.ref_name }} | |
name: ${{ github.ref_name }} | |
body: | | |
${{ steps.changelog.outputs.changelog }} | |
## Docker Images | |
The following Docker images were built and published to GHCR: | |
- [ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }}-bun-linux-x64-modern](https://ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }}-bun-linux-x64-modern) | |
- [ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }}-bun-linux-arm64](https://ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }}-bun-linux-arm64) | |
token: ${{ secrets.GITHUB_TOKEN }} |