Skip to content

Workflow file for this run

name: Push docker image to registry
"on":
push:
branches: ["main", "feat/registry-docker"]
permissions:
contents: read
env:
# Fix for symfony/color detection. We know GitHub Actions can handle it
DS_REGISTRY: "ghcr.io/jolicode/docker-starter"
DS_PHP_VERSION: "8.3"
jobs:
push-images:
name: Push image to registry
runs-on: ubuntu-latest
env:
DS_PHP_VERSION: "8.3"
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: castor
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and start the infrastructure"
run: "castor docker:push"