Skip to content

Commit

Permalink
multiple build tags
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed May 3, 2022
1 parent 2ed7e0b commit 406e498
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
samcm/ethereum-metrics-exporter
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -25,5 +45,7 @@ jobs:
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: samcm/ethereum-metrics-exporter:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 406e498

Please sign in to comment.