Skip to content

Docker Build and Push #16

Docker Build and Push

Docker Build and Push #16

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- 'main'
schedule:
- cron: '15 3 5 * *' #At 03:15 on day-of-month 5
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push to Docker Hub
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/cling-jupyter:latest