Skip to content

Instantly share code, notes, and snippets.

@firefart
Created August 3, 2021 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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/checkout@v2.3.4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1.10.0
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