mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 11:38:41 +00:00
fix: build ci
This commit is contained in:
parent
897c64a806
commit
b2e9c28016
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -27,13 +27,13 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- image_name: db
|
- image_name: db
|
||||||
context: db
|
context: db
|
||||||
dockerfile: Dockerfile
|
dockerfile: db/Dockerfile
|
||||||
- image_name: judger
|
- image_name: judger
|
||||||
context: judger
|
context: judger
|
||||||
dockerfile: Dockerfile
|
dockerfile: judger/Dockerfile
|
||||||
- image_name: remote-judger
|
- image_name: remote-judger
|
||||||
context: remote_judger
|
context: remote_judger
|
||||||
dockerfile: Dockerfile
|
dockerfile: remote_judger/Dockerfile
|
||||||
- image_name: web
|
- image_name: web
|
||||||
context: .
|
context: .
|
||||||
dockerfile: web/Dockerfile
|
dockerfile: web/Dockerfile
|
||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
sed -i "s/'s2oj-version' => 'dev'/'s2oj-version' => '$(echo "${{ github.sha }}" | cut -c1-7)'/g" web/app/.default-config.php
|
sed -i "s/'s2oj-version' => 'dev'/'s2oj-version' => '$(echo "${{ github.sha }}" | cut -c1-7)'/g" web/app/.default-config.php
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@v2.0.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata (tags, labels) for Docker
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4.0.1
|
uses: docker/metadata-action@v4.3.0
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-${{ matrix.image_name }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-${{ matrix.image_name }}
|
||||||
tags: |
|
tags: |
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
type=sha,prefix=
|
type=sha,prefix=
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v3.1.1
|
uses: docker/build-push-action@v3.3.0
|
||||||
with:
|
with:
|
||||||
context: ${{ matrix.context }}
|
context: ${{ matrix.context }}
|
||||||
file: ${{ matrix.dockerfile }}
|
file: ${{ matrix.dockerfile }}
|
||||||
|
Loading…
Reference in New Issue
Block a user