Skip to content

ci: add release workflow #1

ci: add release workflow

ci: add release workflow #1

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
ghcr:

Check failure on line 8 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
name: Publish to GHCR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v5
with:
push: true
target: php-fpm
platforms: linux/amd64,linux/arm64/v8
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/stackmasters/php-sample:fpm-${{ github.event.release.name }}
ghcr.io/stackmasters/php-sample:fpm-latest
- uses: docker/build-push-action@v5
with:
push: true
target: nginx
platforms: linux/amd64,linux/arm64/v8
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/stackmasters/php-sample:nginx-${{ github.event.release.name }}
ghcr.io/stackmasters/php-sample:nginx-latest