Skip to content

wallet-connect: add SIWE validation and tests #1117

wallet-connect: add SIWE validation and tests

wallet-connect: add SIWE validation and tests #1117

name: Publish Containers
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
CORE_IMAGE: ghcr.io/gemwalletcom/core
DYNODE_IMAGE: ghcr.io/gemwalletcom/dynode
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# - name: Check for dynode changes
# id: changes
# run: |
# if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -qE '^(apps/dynode/|Cargo\.lock|Dockerfile)'; then
# echo "dynode=true" >> $GITHUB_OUTPUT
# else
# echo "dynode=false" >> $GITHUB_OUTPUT
# fi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PACKAGES_GITHUB_TOKEN }}
- name: Build and push core
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
target: core
push: true
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
tags: |
${{ env.CORE_IMAGE }}:latest
${{ env.CORE_IMAGE }}:${{ github.sha }}
# - name: Build and push dynode
# if: steps.changes.outputs.dynode == 'true' || github.event_name == 'workflow_dispatch'
# uses: docker/build-push-action@v6
# with:
# context: .
# file: ./Dockerfile
# target: dynode
# push: true
# platforms: linux/amd64
# cache-from: type=gha
# labels: |
# org.opencontainers.image.source=https://github.com/${{ github.repository }}
# tags: |
# ${{ env.DYNODE_IMAGE }}:latest
# ${{ env.DYNODE_IMAGE }}:${{ github.sha }}