Skip to content

Deploy to docker hub #73

Deploy to docker hub

Deploy to docker hub #73

name: Deploy to docker hub
on:
push:
branches:
- '*'
- '!feature/**'
- '!hotfix/**'
- '!bugfix/**'
tags:
- '*'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@master
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: manhinhang/ib-gateway-docker
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}