mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Create build.yml
This commit is contained in:
parent
fad5be156b
commit
8b321e4286
1 changed files with 44 additions and 0 deletions
44
.github/workflows/build.yml
vendored
Normal file
44
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: Build & push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./
|
||||
|
||||
jobs:
|
||||
push-app-image:
|
||||
runs-on: ubuntu-latest
|
||||
environment: production
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Login to private registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: my.private.registry.com
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build the app image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
push: true
|
||||
context: .
|
||||
file: go-ethereum/Dockerfile1
|
||||
platforms: linux/amd64
|
||||
tags: my.private.registry.com/my-image:latest
|
||||
secrets: |
|
||||
"secret_1=${{ secrets.MY_SECRET_1 }}"
|
||||
"secret_2=${{ secrets.MY_SECRET_2 }}"
|
||||
Loading…
Reference in a new issue