Skip to content

Add license, Github CD. #1

Add license, Github CD.

Add license, Github CD. #1

Workflow file for this run

name: CD prod
on:
push:
branches: [ "master"]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- 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.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
file: ./Dockerfile
push: true
tags: ghcr.io/shapeblock/operator:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max