Skip to content

build(deps): bump django from 4.2.7 to 4.2.10 (#182) #134

build(deps): bump django from 4.2.7 to 4.2.10 (#182)

build(deps): bump django from 4.2.7 to 4.2.10 (#182) #134

Workflow file for this run

name: build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE: 'ghcr.io/ustclug/hackergame:latest'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Docker image
run: |
docker pull "$IMAGE"
docker build -t "$IMAGE" --cache-from "$IMAGE" .
- name: Push Docker image
run: |
docker login ghcr.io -u ${{ github.actor }} --password-stdin <<< "${{ secrets.GITHUB_TOKEN }}"
docker push "$IMAGE"