Skip to content

Workflow file for this run

# Workflow for building the container
name: Build the cjpv8 container
on:
# Runs on pushes targeting docker branch
push:
branches: ["actions"]
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
run: date=$(date +'%Y-%m-%d') && docker build -t ghcr.io/wwu-trap/cjp8:$date . && docker push ghcr.io/wwu-trap/cjp8:$date