Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Use dotenv and add multi arch build #4

Use dotenv and add multi arch build

Use dotenv and add multi arch build #4

Workflow file for this run

name: Build and push
on:
push:
branches:
- "main"
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/kkrt-labs/kakacet/backend:latest
context: ./backend
platforms: linux/amd64,linux/arm64
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/kkrt-labs/kakacet/frontend:latest
context: ./frontend
platforms: linux/amd64,linux/arm64