Skip to content

Merge pull request #35 from pattern-tech/feat/fake-thinking #18

Merge pull request #35 from pattern-tech/feat/fake-thinking

Merge pull request #35 from pattern-tech/feat/fake-thinking #18

Workflow file for this run

name: Docker image
on:
push:
branches:
- dev
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create .env
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ vars.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }}
envkey_NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
envkey_PATTERN_CORE_ENDPOINT: ${{ vars.PATTERN_CORE_ENDPOINT }}
envkey_AUTH_TRUST_HOST: ${{ vars.AUTH_TRUST_HOST }}
- name: Extract Metadata for image
uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/pattern-tech/pattern-app
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: 'linux/amd64'
push: true
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max