Skip to content

Instantly share code, notes, and snippets.

@scoates
Created May 2, 2025 19:31
Show Gist options
  • Save scoates/65e7011063316b99323a79c2c30d54d3 to your computer and use it in GitHub Desktop.
Save scoates/65e7011063316b99323a79c2c30d54d3 to your computer and use it in GitHub Desktop.
- name: Set up Docker CLI
uses: docker/setup-buildx-action@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push (daemon)
env:
IMAGE_PREFIX: studioworksd-build
uses: docker/build-push-action@v6
with:
context: .
pull: true
push: true
file: .system/docker/Dockerfile-studioworksd
tags: ghcr.io/${{github.repository}}/${{env.IMAGE_PREFIX}}:${{ github.sha }},ghcr.io/${{github.repository}}/${{env.IMAGE_PREFIX}}:latest
FROM ghcr.io/org/repo/studioworksd-build:latest AS run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment