mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-06-28 09:16:55 +00:00
Looks good!
This commit is contained in:
parent
8d0e31872a
commit
cb90b69b3f
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@ -6,13 +6,15 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- '*'
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKERHUB_PREFIX: docker.io
|
DOCKERHUB_PREFIX: docker.io
|
||||||
GITHUB_CONTAINER_PREFIX: ghcr.io
|
GITHUB_CONTAINER_PREFIX: ghcr.io
|
||||||
DOCKER_IMAGE: donaldzou/wgdashboard
|
DOCKER_IMAGE: dselen/wgdashboard
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker_build:
|
docker_build:
|
||||||
@ -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