Skip to content

feat: allow pass explicit php binary using env, fixes #445 #187

feat: allow pass explicit php binary using env, fixes #445

feat: allow pass explicit php binary using env, fixes #445 #187

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
permissions:
contents: write
id-token: write
packages: write
jobs:
release:
runs-on: nscloud-ubuntu-22.04-amd64-8x8
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
check-latest: true
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install Cosign
uses: sigstore/cosign-installer@v3
- name: Install Syft
uses: anchore/sbom-action/[email protected]
- uses: octo-sts/[email protected]
id: sts-homebrew
with:
scope: FriendsOfShopware/homebrew-tap
identity: release
- uses: octo-sts/[email protected]
id: sts-nur
with:
scope: FriendsOfShopware/nur-packages
identity: release
- name: Login into Github Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Login into Docker Hub
run: echo "${{ secrets.DOCKER_HUB_SHOPWARE_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_SHOPWARE_USERNAME }} --password-stdin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.sts-homebrew.outputs.token }}
NUR_GITHUB_TOKEN: ${{ steps.sts-nur.outputs.token }}
AUR_KEY: ${{ secrets.AUR_KEY }}
- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli
- name: Cloudsmith Uploads
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
for filename in dist/*.deb; do
cloudsmith push deb friendsofshopware/stable/any-distro/any-version $filename
done
for filename in dist/*.rpm; do
cloudsmith push rpm friendsofshopware/stable/any-distro/any-version $filename
done
for filename in dist/*.apk; do
cloudsmith push alpine friendsofshopware/stable/alpine/any-version $filename
done