build(deps): bump axios from 1.5.0 to 1.6.0 #131
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
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" |