-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add push images to registry
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Push docker image to registry | ||
|
||
"on": | ||
push: | ||
branches: ["main", "feat/registry-docker"] | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
env: | ||
# Fix for symfony/color detection. We know GitHub Actions can handle it | ||
DS_REGISTRY: "ghcr.io/jolicode/docker-starter-cache" | ||
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 registry | ||
shell: bash | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | ||
|
||
- name: "Build and start the infrastructure" | ||
run: "castor docker:push" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters