Skip to content

Instantly share code, notes, and snippets.

@firefart
Created August 3, 2021 06:10
Show Gist options
  • Save firefart/939f33a6159eefe931b5ebb076f42948 to your computer and use it in GitHub Desktop.
Save firefart/939f33a6159eefe931b5ebb076f42948 to your computer and use it in GitHub Desktop.
name: Build Docker Images
on:
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
dockerhub:
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: USERNAME/REPO:TAG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment