Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
chasewoo committed Jun 10, 2024
1 parent 5a847aa commit ceddc80
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- uses: JS-DevTools/npm-publish@v1
with:
Expand Down Expand Up @@ -130,19 +131,20 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ secrets.SWR_REGISTRY }}
registry: ${{ vars.SWR_REGISTRY }}
username: ${{ secrets.SWR_USERNAME }}
password: ${{ secrets.SWR_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.SWR_REGISTRY }}/shukun-dev/platform
images: ${{ vars.SWR_REGISTRY }}/shukun-dev/platform

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand All @@ -164,19 +166,20 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ secrets.SWR_REGISTRY }}
registry: ${{ vars.SWR_REGISTRY }}
username: ${{ secrets.SWR_USERNAME }}
password: ${{ secrets.SWR_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.SWR_REGISTRY }}/shukun-dev/hub
images: ${{ vars.SWR_REGISTRY }}/shukun-dev/hub

- name: Build and push Docker image
uses: docker/build-push-action@v5
Expand Down

0 comments on commit ceddc80

Please sign in to comment.