mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 01:06:58 +00:00
Merge pull request #780 from donaldzou/releasetagging
Docker release management
This commit is contained in:
commit
c117ee61d5
12
.github/workflows/docker.yml
vendored
12
.github/workflows/docker.yml
vendored
@ -6,8 +6,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- '*'
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_PREFIX: docker.io
|
DOCKERHUB_PREFIX: docker.io
|
||||||
@ -60,10 +62,9 @@ jobs:
|
|||||||
${{ env.DOCKERHUB_PREFIX }}/${{ env.DOCKER_IMAGE }}
|
${{ env.DOCKERHUB_PREFIX }}/${{ env.DOCKER_IMAGE }}
|
||||||
${{ env.GITHUB_CONTAINER_PREFIX }}/${{ env.DOCKER_IMAGE }}
|
${{ env.GITHUB_CONTAINER_PREFIX }}/${{ env.DOCKER_IMAGE }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch,format={{ref_name}}
|
type=ref,event=branch
|
||||||
|
type=ref,event=tag
|
||||||
type=raw,value=${{ env.SHORT_SHA }}
|
type=raw,value=${{ env.SHORT_SHA }}
|
||||||
type=semver,pattern={{ version }}
|
|
||||||
type=semver,pattern=latest
|
|
||||||
|
|
||||||
- name: Print a message
|
- name: Print a message
|
||||||
run: echo "${{ steps.meta.outputs.tags }}"
|
run: echo "${{ steps.meta.outputs.tags }}"
|
||||||
@ -79,6 +80,7 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
|
|
||||||
docker_scan:
|
docker_scan:
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: docker_build
|
needs: docker_build
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user