frappe_docker/.github/workflows/production-image.yml
Bohdan Kucherivayi f8554cd634 fix: bake action
2024-02-14 00:49:02 +02:00

39 lines
843 B
YAML

name: Create and publish a Docker image
on:
push:
branches: ["production"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
name: Build and push Docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Bake and push
uses: docker/bake-action@v4
with:
push: true
targets: default
no-cache: true