go-ethereum/.github/workflows/docker-image.yml
2023-10-26 20:34:03 +03:00

30 lines
694 B
YAML

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
types: [ labeled ]
jobs:
build:
if: ${{ github.event.label.name == 'CI:Build' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag test:$(date +%s)
- 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: vatman/client-go:latest