Skip to content

Commit

Permalink
chore(ci): add push images to registry
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Apr 26, 2024
1 parent ab39ec0 commit 71ebac1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: castor

- name: "Build and start the infrastructure"
run: "castor docker:push"

0 comments on commit 71ebac1

Please sign in to comment.