Skip to content

rebuild image (update check50) #99

rebuild image (update check50)

rebuild image (update check50) #99

Workflow file for this run

name: Build and push
on: push
jobs:
build-and-push:
runs-on: ubuntu-2404-64-cores-amd
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
build-args: |
TAG=${{ github.ref == 'refs/heads/main' && 'latest' || 'canary' }}
tags: |
cs50/check:${{ github.sha }}
cs50/check:canary
${{ github.ref == 'refs/heads/main' && 'cs50/check:latest' || '' }}