Skip to content

Commit 0cfbc40

Browse files
author
Ahmad Nassri
committed
ci(docker): build and publish docker image
1 parent f8f0684 commit 0cfbc40

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/release.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,30 @@ jobs:
1414
- uses: actions/[email protected]
1515

1616
# run checks
17-
- run: npm audit --audit-level=moderate
17+
- run: npm audit --audit-level=critical
1818
- run: npx updated
1919

2020
release:
21+
needs: dependencies
22+
2123
runs-on: ubuntu-latest
2224

2325
steps:
2426
- uses: actions/checkout@v2
2527
- uses: actions/[email protected]
2628

27-
# release
28-
- name: dogfood
29+
- id: release
30+
name: dogfood
2931
uses: ./
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- if: ${{ steps.release.outputs.published }}
36+
uses: docker/build-push-action@v1
37+
with:
38+
add_git_labels: true
39+
username: ahmadnassri
40+
password: ${{ secrets.DOCKER_PASSWORD }}
41+
registry: registry.hub.docker.com
42+
repository: ahmadnassri/action-semantic-release
43+
tags: latest, ${{ steps.release.outputs.release-version }}

0 commit comments

Comments
 (0)