Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Update package.json and pnpm-lock.yaml to bump dependencies, includin… #24

Update package.json and pnpm-lock.yaml to bump dependencies, includin…

Update package.json and pnpm-lock.yaml to bump dependencies, includin… #24

name: Build and Release Docker Image
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install bun
run: curl -fsSL https://bun.sh/install | bash
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: "${{ github.repository_owner }}"
- name: Build Docker image
run: docker build --build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -t ghcr.io/${OWNER_LC}/moodle-openapi-server:${{ github.ref_name }} .
- name: Push Docker image
run: docker push ghcr.io/${OWNER_LC}/moodle-openapi-server:${{ github.ref_name }}