Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Jan 31, 2024
1 parent 2017ad7 commit a31edd1
Showing 1 changed file with 20 additions and 27 deletions.
47 changes: 20 additions & 27 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,40 @@
name: "Push raiko Docker image to GCR"

on:
push:
branches: [main]
# on:
# push:
# branches: [main]

# Comment out above and remove the line below (this is just for testing)
on: [push, pull_request]

jobs:
push-docker-image:
name: Build and push raiko Docker image
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to GCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
password: ${{ secrets.GCR_JSON_KEY }}

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

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

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
- name: Build and push with pos feature
uses: docker/build-push-action@v5
with:
images: |
gcr.io/evmchain/raiko
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
type=sha
- name: Build and push
uses: docker/build-push-action@v2
platforms: linux/amd64
push: true
tags: raiko:latest
build-args: BUILD_FLAGS=--features=pos

- name: Build and push with no features
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: raiko:latest-none

0 comments on commit a31edd1

Please sign in to comment.