Skip to content

Commit

Permalink
Update github workflows to adapt changes from docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
webair committed Apr 25, 2024
1 parent 163f076 commit 3f933d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Publish

on:
workflow_dispatch:
Expand All @@ -19,15 +19,16 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image - stage release
- name: Build publish_vite_plugin_vue_examples docker image - stage release
uses: docker/[email protected]
with:
context: .
target: release
secrets: |
NPM_AUTH_TOKEN=${{ secrets.NPM_AUTH_TOKEN }}
tags: publish_vite_plugin_vue_examples
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Publish vite_plugin_vue_examples
run: |
docker run -e NPM_AUTH_TOKEN="${{ secrets.NPM_AUTH_TOKEN }}" publish_vue_examples
- name: Prevent consistently growing buildx cache
run: |
rm -rf /tmp/.buildx-cache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build Docker image - stage verify
- name: Build publish_vite_plugin_vue_examples docker image
uses: docker/[email protected]
with:
context: .
target: verify
tags: publish_vite_plugin_vue_examples
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Prevent consistently growing buildx cache
Expand Down

0 comments on commit 3f933d7

Please sign in to comment.