Skip to content

Merge branch 'dev' of github.com:isd-sgcu/rpkm67-store into dev #25

Merge branch 'dev' of github.com:isd-sgcu/rpkm67-store into dev

Merge branch 'dev' of github.com:isd-sgcu/rpkm67-store into dev #25

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
- dev
tags:
- v*
env:
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_TAG: ${{ github.sha }}
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 }}:${{ env.IMAGE_TAG }},${{ env.IMAGE_NAME }}:latest
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