Skip to content

Commit

Permalink
docker: 发布npm后自动发布docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Oct 10, 2023
1 parent 10bdbd5 commit 6c42946
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Community

on:
workflow_run:
workflows: [Disabled-Release NPM]
workflows: [Release NPM]
types:
- completed
push:
Expand All @@ -12,6 +12,7 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
node-version: [14.x]
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,20 @@ jobs:
with:
time: 120s

- name: Create Docker Release
# if: steps.version.outputs.is_stable == 'true'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
owner: steedos
repo: docker
commitish: main
tag_name: v${{ steps.branch-name.outputs.tag }}
release_name: Release v${{ steps.branch-name.outputs.tag }}
draft: false
prerelease: false
# - name: Create Docker Release
# # if: steps.version.outputs.is_stable == 'true'
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.DOCKER_GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# owner: steedos
# repo: docker
# commitish: main
# tag_name: v${{ steps.branch-name.outputs.tag }}
# release_name: Release v${{ steps.branch-name.outputs.tag }}
# draft: false
# prerelease: false

- name: Sync NpmMirror
env:
Expand Down

0 comments on commit 6c42946

Please sign in to comment.