-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 1.05 KB
/
commit.yml
File metadata and controls
39 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Commit
on: push
jobs:
commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: extenda/actions/gcp-secret-manager@v0
with:
service-account-key: ${{ secrets.SECRET_AUTH }}
secrets: |
DOCKER_PASSWORD: dockerhub-password
DOCKER_USERNAME: dockerhub-username
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Run tests
run: |
npm ci
npm ci --prefix commitlint-plugin-tense
npm test --prefix commitlint-plugin-tense
npm ci --prefix commitlint-plugin-format
npm test --prefix commitlint-plugin-format
- name: Push to DockerHub
if: github.ref == 'refs/heads/master'
uses: extenda/actions/docker@v0
with:
image: extenda/commitlint
tag: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}