Skip to content

Merge pull request #1 from isd-sgcu/feat/baan #4

Merge pull request #1 from isd-sgcu/feat/baan

Merge pull request #1 from isd-sgcu/feat/baan #4

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
- dev
tags:
- v*
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v3
with:
push: true
tags: ${{ env.IMAGE_NAME }}:${{ github.ref_type == 'tag' && github.ref_name || github.sha }}
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max
# docker pull --platform linux/x86_64