Skip to content

Commit

Permalink
Merge pull request #1 from devfolioco/pro-2465-add-infura-id-during-t…
Browse files Browse the repository at this point in the history
…he-build-for-siwe

Add release file for siwe-oidc
  • Loading branch information
preetjdp authored Jun 14, 2023
2 parents 6f423c8 + 00f57cc commit 8643e5c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release
on:
release:
types:
- published

jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Latest
if: github.event.release.prerelease == false
id: docker_build_latest
uses: docker/build-push-action@v3
with:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/devfolioco/siwe-oidc:${{ github.event.release.tag_name }}
ghcr.io/devfolioco/siwe-oidc:latest
secrets: |
INFURA_ID=${{ secrets.INFURA_ID }}
- name: Build and push Pre-Release
if: github.event.release.prerelease == true
id: docker_build_prerelease
uses: docker/build-push-action@v3
with:
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
# @todo Add arm builds once they are faster
platforms: linux/amd64
tags: |
ghcr.io/devfolioco/siwe-oidc:${{ github.event.release.tag_name }}
secrets: |
INFURA_ID=${{ secrets.INFURA_ID }}

0 comments on commit 8643e5c

Please sign in to comment.