mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 07:38:42 +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
|
type: docker
|
||||||
name: Build Docker Image (s2oj-db)
|
name: Build Docker Image (s2oj-db)
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: tags
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@ -19,10 +20,6 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- master
|
|
||||||
- "${DRONE_COMMIT_SHA:0:8}"
|
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
@ -32,11 +29,12 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build Docker Image (s2oj-judger)
|
name: Build Docker Image (s2oj-judger)
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: tags
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@ -48,10 +46,6 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- master
|
|
||||||
- "${DRONE_COMMIT_SHA:0:8}"
|
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
@ -61,11 +55,12 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build Docker Image (s2oj-web)
|
name: Build Docker Image (s2oj-web)
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: tags
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- echo -n "latest, $DRONE_BRANCH, ${DRONE_COMMIT_SHA:0:8}" > .tags
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
@ -76,10 +71,6 @@ steps:
|
|||||||
username: baoshuo
|
username: baoshuo
|
||||||
password:
|
password:
|
||||||
from_secret: GITMAC_SECRET
|
from_secret: GITMAC_SECRET
|
||||||
tags:
|
|
||||||
- latest
|
|
||||||
- master
|
|
||||||
- "${DRONE_COMMIT_SHA:0:8}"
|
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
branch: master
|
branch: master
|
||||||
|
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -36,11 +36,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-db
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-db
|
||||||
tags: |
|
tags: |
|
||||||
|
latest
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
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.1.1
|
||||||
@ -73,11 +74,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-judger
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-judger
|
||||||
tags: |
|
tags: |
|
||||||
|
latest
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
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.1.1
|
||||||
@ -110,11 +112,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-web
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_BASENAME }}-web
|
||||||
tags: |
|
tags: |
|
||||||
|
latest
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=ref,event=pr
|
type=ref,event=pr
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=sha
|
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.1.1
|
||||||
|
Loading…
Reference in New Issue
Block a user