@codfish/actions-playground 0.0.0-PR-44--fa7de66 → 0.0.0-PR-44--6afc78d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,16 +14,28 @@ jobs:
14
14
  release:
15
15
  runs-on: ubuntu-latest
16
16
 
17
+ concurrency:
18
+ group: ${{ github.workflow }}-${{ github.ref }}
19
+ cancel-in-progress: true
20
+
17
21
  steps:
18
- - uses: actions/checkout@v2
22
+ - uses: actions/checkout@v3
19
23
  with:
20
24
  persist-credentials: false
21
- fetch-depth: 0
22
25
 
23
26
  - uses: actions/setup-node@v1
24
27
  with:
25
28
  node-version: 18.x
26
29
 
30
+ - shell: bash
31
+ run: |
32
+ echo "DOCKER_TAGS=main-${GITHUB_SHA},main,latest" >> $GITHUB_ENV;
33
+
34
+ - name: echo DOCKER_TAGS
35
+ shell: bash
36
+ run: |
37
+ echo $DOCKER_TAGS;
38
+
27
39
  - name: docker login
28
40
  run: |
29
41
  echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
@@ -87,17 +99,25 @@ jobs:
87
99
  }
88
100
  ],
89
101
  'countMatches': true
102
+ },
103
+ {
104
+ 'files': ['provisioning/Chart.yml'],
105
+ 'from': 'ersion: .*',
106
+ 'to': 'ersion: ${nextRelease.version}',
107
+ 'results': [
108
+ {
109
+ 'file': 'provisioning/Chart.yml',
110
+ 'hasChanged': true,
111
+ 'numMatches': 2,
112
+ 'numReplacements': 2
113
+ }
114
+ ],
115
+ 'countMatches': true
90
116
  }
91
117
  ]
92
118
  }
93
119
  ],
94
- [
95
- '@semantic-release/git',
96
- {
97
- 'assets': ['Dockerfile'],
98
- 'message': 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
99
- }
100
- ],
120
+ [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
101
121
  '@semantic-release/release-notes-generator',
102
122
  '@semantic-release/npm',
103
123
  '@semantic-release/github'
@@ -106,6 +126,16 @@ jobs:
106
126
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
107
127
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
108
128
 
129
+ - shell: bash
130
+ if: steps.semantic.outputs.new-release-published == 'true'
131
+ run: |
132
+ echo "DOCKER_TAGS=${DOCKER_TAGS},${RELEASE_VERSION}" >> $GITHUB_ENV;
133
+
134
+ - name: echo DOCKER_TAGS
135
+ shell: bash
136
+ run: |
137
+ echo $DOCKER_TAGS;
138
+
109
139
  - name: push docker images to dockerhub & GCR
110
140
  if: steps.semantic.outputs.new-release-published == 'true'
111
141
  run: |
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
 
9
9
  steps:
10
- - uses: actions/checkout@v1
10
+ - uses: actions/checkout@v3
11
11
 
12
12
  - run: printenv
13
13
 
@@ -6,11 +6,22 @@ jobs:
6
6
  validate:
7
7
  runs-on: ubuntu-latest
8
8
 
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
9
13
  steps:
10
14
  - uses: actions/checkout@v3
11
15
  with:
12
16
  fetch-depth: 0
13
17
 
18
+ - uses: actions/setup-node@v3
19
+ id: setup-node
20
+ with:
21
+ cache: 'npm'
22
+ node-version-file: '.nvmrc'
23
+ registry-url: 'https://registry.npmjs.org'
24
+
14
25
  - name: troubleshooting
15
26
  env:
16
27
  GITHUB_CONTEXT: ${{ toJson(github) }}
@@ -19,13 +30,6 @@ jobs:
19
30
  git branch -a
20
31
  echo "$GITHUB_CONTEXT"
21
32
 
22
- - uses: actions/setup-node@v3
23
- id: setup-node
24
- with:
25
- cache: 'npm'
26
- node-version: 18.x
27
- registry-url: 'https://registry.npmjs.org'
28
-
29
33
  - uses: actions/cache@v3
30
34
  id: npm-cache
31
35
  with:
package/Dockerfile CHANGED
@@ -4,11 +4,13 @@ RUN mkdir /app
4
4
  WORKDIR /app
5
5
 
6
6
  COPY ./package.json ./package-lock.json ./
7
+
7
8
  RUN npm ci
8
9
 
9
- COPY src src
10
+ COPY ./src ./src
11
+ COPY ./public ./public
10
12
 
11
- ENV RELEASE_VERSION=4.4.0
13
+ ENV RELEASE_VERSION=4.7.1
12
14
 
13
15
  RUN npm run build
14
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "0.0.0-PR-44--fa7de66",
3
+ "version": "0.0.0-PR-44--6afc78d",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -0,0 +1,3 @@
1
+ appVersion: 4.7.1
2
+ name: actions-playground
3
+ version: 4.7.1