go-ethereum/.github/workflows/build.yml
2023-11-07 18:21:44 +02:00

33 lines
No EOL
825 B
YAML

name: Docker Image Build
on:
pull_request:
branches: [ "master" ]
types: [ closed ]
env:
TEST_TAG: user/app:test
LATEST_TAG: vatman/client-go:latest, vatman/client-go:1.0.0
jobs:
Build:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ env.LATEST_TAG }}