Skip to content

clients/embed: remove cache comment #1800

clients/embed: remove cache comment

clients/embed: remove cache comment #1800

Workflow file for this run

name: Server Build and Release
on:
push:
branches: ["main"]
jobs:
build:
name: "Server: Build 🐳"
timeout-minutes: 15
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/polarsource/polar
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/[email protected]
id: push
with:
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: ./server
platforms: linux/amd64,linux/arm64/v8
- name: Deploy
if: github.ref == 'refs/heads/main'
run: "./.github/workflows/deploy_server.sh ${{ steps.push.outputs.digest }}"
env:
RENDER_DEPLOY_KEY_WORKER: ${{ secrets.RENDER_DEPLOY_KEY_WORKER }}
RENDER_DEPLOY_KEY_API: ${{ secrets.RENDER_DEPLOY_KEY_API }}