From 71ebac1cbf60879f352f3774b026b0d88cfdbcae Mon Sep 17 00:00:00 2001 From: Joel Wurtz Date: Fri, 26 Apr 2024 16:46:59 +0200 Subject: [PATCH] chore(ci): add push images to registry --- .github/workflows/cache.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cache.yml diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml new file mode 100644 index 0000000..df663ff --- /dev/null +++ b/.github/workflows/cache.yml @@ -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"