Skip to content

Build and Push Docker Image #25

Build and Push Docker Image

Build and Push Docker Image #25

Workflow file for this run

name: Build and Push Docker Image
on:
push:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '11 11 1 * *'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: freekers/docker-statsgen:latest,freekers/docker-statsgen:${{ github.run_number }}