Skip to content

feature(Kubernetes) : added config constructor to personalize server … #3

feature(Kubernetes) : added config constructor to personalize server …

feature(Kubernetes) : added config constructor to personalize server … #3

name: Build and push app Docker image to GitHub
on:
push:
branches:
- feature/kubernetes
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
platforms: linux/amd64,linux/arm64
context: "./app"
tags: |
ghcr.io/tux-inc/qraft-app:latest-feature-kubernetes
ghcr.io/tux-inc/qraft-app:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max