Skip to content

Merge pull request #11 from pattern-tech/chore/deployment #1

Merge pull request #11 from pattern-tech/chore/deployment

Merge pull request #11 from pattern-tech/chore/deployment #1

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: Login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: 'linux/amd64'
push: true
tags: pattern-tech/pattern-app:latest
cache-from: type=gha
cache-to: type=gha,mode=max