mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
new push commands build.yml
This commit is contained in:
parent
c2d8ea8a5e
commit
7490d807a2
1 changed files with 14 additions and 18 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
|
@ -1,10 +1,8 @@
|
||||||
name: Last
|
name: Build & push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
types: [labeled]
|
branches: [ main ]
|
||||||
labels: ['CI:Build']
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
@ -17,7 +15,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
#if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -35,14 +33,12 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Build and push the app image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@v4
|
run: |
|
||||||
with:
|
echo "The building of a new docker image is going to start now."
|
||||||
push: true
|
docker build . --file Dockerfile1 --tag my-image:${{ github.event.number }} --push
|
||||||
context: .
|
|
||||||
file: Dockerfile
|
- name: Push Docker image to registry
|
||||||
platforms: linux/amd64
|
run: |
|
||||||
tags: danieldim12/my-image:latest
|
docker tag my-image:${{ github.event.number }} danieldim12/my-picture:${{ github.event.number }}
|
||||||
secrets: |
|
docker push danieldim12/my-picture:${{ github.event.number }}
|
||||||
"secret_1=${{ secrets.MY_SECRET_1 }}"
|
|
||||||
"secret_2=${{ secrets.MY_SECRET_2 }}"
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue