mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 11:41:53 +00:00
chore: update docker image tag name
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9c2b2a96ab
commit
c36339a05b
39
.drone.yml
39
.drone.yml
@ -3,11 +3,12 @@ kind: pipeline
|
||||
type: docker
|
||||
name: Build Docker Image (s2oj-db)
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
commands:
|
||||
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -19,10 +20,6 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
tags:
|
||||
- latest
|
||||
- master
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
@ -32,11 +29,12 @@ kind: pipeline
|
||||
type: docker
|
||||
name: Build Docker Image (s2oj-judger)
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
commands:
|
||||
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -48,10 +46,6 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
tags:
|
||||
- latest
|
||||
- master
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
@ -61,11 +55,12 @@ kind: pipeline
|
||||
type: docker
|
||||
name: Build Docker Image (s2oj-web)
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: tags
|
||||
image: alpine
|
||||
commands:
|
||||
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
@ -76,10 +71,6 @@ steps:
|
||||
username: baoshuo
|
||||
password:
|
||||
from_secret: GITMAC_SECRET
|
||||
tags:
|
||||
- latest
|
||||
- master
|
||||
- "${DRONE_COMMIT_SHA:0:8}"
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
|
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -36,11 +36,12 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-db
|
||||
tags: |
|
||||
latest
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=sha
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3.1.1
|
||||
@ -73,11 +74,12 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-judger
|
||||
tags: |
|
||||
latest
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=sha
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3.1.1
|
||||
@ -110,11 +112,12 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-web
|
||||
tags: |
|
||||
latest
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=sha
|
||||
type=sha,prefix=
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3.1.1
|
||||
|
Loading…
Reference in New Issue
Block a user