Skip to content

Build and Push to ghcr #1

Build and Push to ghcr

Build and Push to ghcr #1

Workflow file for this run

name: Build and Push to ghcr
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker build -t ghcr.io/ustc-vlab/vlab-oauth-example .
- name: Login to ghcr
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: docker push ghcr.io/ustc-vlab/vlab-oauth-example