Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |