Skip to content

Merge branch 'feature/api' into main #1

Merge branch 'feature/api' into main

Merge branch 'feature/api' into main #1

Workflow file for this run

name: Build and push app Docker image to GitHub
on:
push:
branches:
- main
jobs:
build_and_push:
name: Build and push Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
context: "./app"
tags: |
ghcr.io/${{ github.repository_owner }}/qraft:latest
ghcr.io/${{ github.repository_owner }}/qraft:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max