-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3408d1
commit 183bcaa
Showing
1 changed file
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
VERSION: 0.10.14 | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
env: | ||
IMAGE: zappi/celery-exporter | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: danihodovic/celery-exporter | ||
ref: v${{ env.VERSION }} | ||
- name: Prepare Image Metadata | ||
id: metadata | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.IMAGE }} | ||
- name: Set Up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set Up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Test Multi-Arch Building Of Image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: false | ||
annotations: ${{ steps.metadata.outputs.annotations }} | ||
labels: ${{ steps.metadata.outputs.labels }} | ||
tags: ${{ steps.metadata.outputs.tags }} |