Skip to content

Sprite Quick Config in Preview #1121

Sprite Quick Config in Preview

Sprite Quick Config in Preview #1121

name: Publish Docker image
on:
push:
pull_request:
jobs:
publish-docker-image:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{github.token}}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
build-args: |
NODE_ENV=staging
provenance: false
sbom: false
cache-from: type=gha
cache-to: type=gha,mode=max
push: ${{ github.event_name == 'push' && github.ref_name == 'dev' }}
tags: |
ghcr.io/${{github.repository}}:dev