Skip to content

chore: bump version to 0.0.3 #28

chore: bump version to 0.0.3

chore: bump version to 0.0.3 #28

Workflow file for this run

name: πŸš€ Release
on:
push:
tags: ["*"]
permissions:
contents: write
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: sedaprotocol/seda-data-proxy
jobs:
build-and-push-amd64:
name: 🐳 Build and Push Docker Image (amd64)
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
- 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 amd64
run: |
docker build \
--build-arg TARGET_ARCH=bun-linux-x64-modern \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-x64-modern \
-f .build/docker/Dockerfile \
.
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-x64-modern
build-and-push-arm64:
name: 🐳 Build and Push Docker Image (arm64)
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
- name: πŸ› οΈ Set up QEMU for ARM64
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- 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 arm64
run: |
docker build \
--platform linux/arm64 \
--build-arg TARGET_ARCH=bun-linux-arm64 \
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-arm64 \
-f .build/docker/Dockerfile \
.
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-arm64
create-manifest:
name: πŸ“ Create and Push Docker Manifest
needs:
- build-and-push-amd64
- build-and-push-arm64
runs-on: ubuntu-latest
steps:
- name: πŸ” Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: πŸ“ Create and Push Manifest
run: |
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} \
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-x64-modern \
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}-bun-linux-arm64
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
create-release:
name: πŸ“¦ Create GitHub Release
needs: create-manifest
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)
- [ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }}](https://ghcr.io/sedaprotocol/seda-data-proxy:${{ github.ref_name }})
token: ${{ secrets.GITHUB_TOKEN }}