Skip to content

Commit

Permalink
Build Validator Init Image
Browse files Browse the repository at this point in the history
  • Loading branch information
unxnn committed Jan 24, 2022
1 parent bbc830d commit bcfed0b
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker

on:
push:
branches:
- "!*"
tags:
- "v*"

jobs:
docker:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
europe-west4-docker.pkg.dev/stakewiselabs/public/validator-init
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha
-
name: Login to GAR
uses: docker/login-action@v1
with:
registry: europe-west4-docker.pkg.dev
username: _json_key
password: ${{ secrets.GAR_JSON_KEY }}
-
name: Build and Push Validator Init Image
uses: docker/build-push-action@v2
with:
context: charts/operator/docker
file: charts/operator/docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit bcfed0b

Please sign in to comment.