chore: update docker image tag name
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-19 20:25:22 +08:00
parent 9c2b2a96ab
commit c36339a05b
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 21 additions and 27 deletions

View File

@ -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

View File

@ -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