Skip to content

Docker Build and Push #11

Docker Build and Push

Docker Build and Push #11

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0' # Scheduled to run every Sunday at 00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/postgres-temporal-tables:latest