Skip to content

Docker Image CI

Docker Image CI #649

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- "*"
branches:
- "master"
pull_request:
branches:
- "master"
schedule:
- cron: '35 2 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ secrets.DOCKERHUB_IMAGE }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}