forked from appvia/githubUserManager
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.81 KB
/
Copy pathci.yml
File metadata and controls
58 lines (51 loc) · 1.81 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ci
on:
push:
branches:
- main
pull_request:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 10
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
with:
node-version-file: .nvmrc
cache: pnpm
- run: |
pnpm install
pnpm lint
pnpm test
pnpm check-types
- id: docker_meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0
with:
images: docker.pkg.github.com/remarkable/githubUserManager/githubUserManager
tags: |
type=sha
type=semver,pattern=v{{version}}
labels: |
org.opencontainers.image.vendor=reMarkable
org.opencontainers.image.documentation=https://github.com/reMarkable/githubUserManager
org.opencontainers.image.authors=Marcus Ramberg <marcus.ramberg@remarkable.com>
maintainer=reMarkable
- name: Login to docker registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@abd2ef45e78c5afb21d64d4ca52ee8550d9572c7 # v4.5.1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}