Skip to content

Build scnuoj Docker Image #1

Build scnuoj Docker Image

Build scnuoj Docker Image #1

Workflow file for this run

name: Build scnuoj Docker Image
on:
workflow_dispatch:
jobs:
build-scnuoj:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
- name: Set lowercase repository name
run: echo "REPOSITORY_LOWER=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build scnuoj and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: ghcr.io/${{ env.REPOSITORY_LOWER }}/scnuoj:latest
platforms: linux/amd64