Skip to content

Commit

Permalink
fix renovate config
Browse files Browse the repository at this point in the history
Signed-off-by: ffais <[email protected]>
  • Loading branch information
ffais committed Oct 10, 2024
1 parent 3a0a47d commit b0ab001
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/renovate-configs.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"helm": {
"enabled": false
}
},
"dockerfile": {
"fileMatch": ["(^|/|\.|\.*)([Dd]ocker|[Cc]ontainer)file$"]
},
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/build_push_image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: build push

on:
push:
branches:
- main

env:
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- healthcheck
- redis
platform:
- linux/amd64
- linux/arm/v6
- linux/arm/v7
- linux/arm64
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
with:
platforms: ${{ matrix.platform }}
file: dockerfiles/php-fpm-${{ matrix.version }}-Dockerfile
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

0 comments on commit b0ab001

Please sign in to comment.