fix: disable usage data by default #36
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
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- "Dockerfile.template" | |
- ".github/workflows/build.yml" | |
- "rootfs/**" | |
env: | |
DOCKER_BUILDKIT: 1 | |
COSIGN_EXPERIMENTAL: 1 | |
permissions: | |
contents: write | |
id-token: write | |
packages: write | |
jobs: | |
php80-arm64: | |
name: 8.0 on ARM64 | |
runs-on: buildjet-2vcpu-ubuntu-2204-arm | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Docker Hub | |
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.0.28-arm64 | |
context: "8.0" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.0-arm64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.0-arm64,mode=max | |
platforms: linux/arm64 | |
push: true | |
provenance: false | |
php80-amd64: | |
name: 8.0 on AMD64 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.0.28-amd64 | |
context: "8.0" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.0-amd64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.0-amd64,mode=max | |
platforms: linux/amd64 | |
push: true | |
provenance: false | |
php81-arm64: | |
name: 8.1 on ARM64 | |
runs-on: buildjet-2vcpu-ubuntu-2204-arm | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Docker Hub | |
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.1.22-arm64 | |
context: "8.1" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.1-arm64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.1-arm64,mode=max | |
platforms: linux/arm64 | |
push: true | |
provenance: false | |
php81-amd64: | |
name: 8.1 on AMD64 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.1.22-amd64 | |
context: "8.1" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.1-amd64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.1-amd64,mode=max | |
platforms: linux/amd64 | |
push: true | |
provenance: false | |
php82-arm64: | |
name: 8.2 on ARM64 | |
runs-on: buildjet-2vcpu-ubuntu-2204-arm | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Docker Hub | |
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.2.9-arm64 | |
context: "8.2" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.2-arm64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.2-arm64,mode=max | |
platforms: linux/arm64 | |
push: true | |
provenance: false | |
php82-amd64: | |
name: 8.2 on AMD64 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- uses: docker/build-push-action@v4 | |
with: | |
tags: ghcr.io/friendsofshopware/production-docker-base:8.2.9-amd64 | |
context: "8.2" | |
cache-from: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.2-amd64 | |
cache-to: type=registry,ref=ghcr.io/friendsofshopware/production-docker-cache:8.2-amd64,mode=max | |
platforms: linux/amd64 | |
push: true | |
provenance: false | |
merge-manifest: | |
name: Merge Manifest | |
runs-on: ubuntu-22.04 | |
needs: | |
- php80-arm64 | |
- php80-amd64 | |
- php81-arm64 | |
- php81-amd64 | |
- php82-arm64 | |
- php82-amd64 | |
steps: | |
- name: Login into Docker Hub | |
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin | |
- name: Login into Github Docker Registery | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Install Cosign | |
uses: sigstore/cosign-installer@v3 | |
- name: Install Regclient | |
run: | | |
wget https://github.com/regclient/regclient/releases/latest/download/regctl-linux-amd64 | |
chmod +x regctl-linux-amd64 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.0 --amend ghcr.io/friendsofshopware/production-docker-base:8.0.28-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.0.28-arm64 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.0.28 --amend ghcr.io/friendsofshopware/production-docker-base:8.0.28-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.0.28-arm64 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.0 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.0.28 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.0 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.0.28 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.0 friendsofshopware/production-docker-base:8.0 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.0.28 friendsofshopware/production-docker-base:8.0.28 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.1 --amend ghcr.io/friendsofshopware/production-docker-base:8.1.22-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.1.22-arm64 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.1.22 --amend ghcr.io/friendsofshopware/production-docker-base:8.1.22-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.1.22-arm64 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.1 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.1.22 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.1 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.1.22 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.1 friendsofshopware/production-docker-base:8.1 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.1.22 friendsofshopware/production-docker-base:8.1.22 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.2 --amend ghcr.io/friendsofshopware/production-docker-base:8.2.9-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.2.9-arm64 | |
- run: docker manifest create ghcr.io/friendsofshopware/production-docker-base:8.2.9 --amend ghcr.io/friendsofshopware/production-docker-base:8.2.9-amd64 --amend ghcr.io/friendsofshopware/production-docker-base:8.2.9-arm64 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.2 | |
- run: docker manifest push ghcr.io/friendsofshopware/production-docker-base:8.2.9 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.2 | |
- run: cosign sign --yes ghcr.io/friendsofshopware/production-docker-base:8.2.9 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.2 friendsofshopware/production-docker-base:8.2 | |
- run: ./regctl-linux-amd64 image copy ghcr.io/friendsofshopware/production-docker-base:8.2.9 friendsofshopware/production-docker-base:8.2.9 | |