[Release] Release 1.2.23 #140
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 judge environment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
with: | |
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: Build env | |
run: | | |
echo "PKG_VERSION=$(cat docker/judger-env/VERSION)" >> $GITHUB_ENV | |
echo "PKG_FULL_VERSION=$(cat docker/judger-env/VERSION)-full" >> $GITHUB_ENV | |
- uses: mr-smithers-excellent/docker-build-push@v2 | |
name: Build judger environment image | |
with: | |
image: ryanlee2014/cupoj-judger-env | |
tag: ${{ env.PKG_VERSION }} | |
registry: docker.io | |
dockerfile: ./docker/judger-env/base/Dockerfile | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: mr-smithers-excellent/docker-build-push@v2 | |
name: Update judger environment image | |
with: | |
image: ryanlee2014/cupoj-judger-env | |
tag: latest | |
registry: docker.io | |
dockerfile: ./docker/judger-env/base/Dockerfile | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: mr-smithers-excellent/docker-build-push@v2 | |
name: Build judger environment image | |
with: | |
image: ryanlee2014/cupoj-judger-env | |
tag: ${{ env.PKG_FULL_VERSION }} | |
registry: docker.io | |
dockerfile: ./docker/judger-env/full/Dockerfile | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} |