Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add automatic tagging to action metadata for GHCR #9

Merged
merged 23 commits into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
41c8a70
fix: test adding automatic release tagging in action yml
prototypicalpro Dec 28, 2020
0131e9e
fix: update package json
prototypicalpro Dec 28, 2020
46444b6
chore: update third-party manifest and notices [skip ci]
Dec 28, 2020
a3c1c28
chore(release): 1.6.2
semantic-release-bot Dec 28, 2020
b8964e5
fix: releaserc fixes
prototypicalpro Dec 29, 2020
8a5273c
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
6532a89
chore(release): 1.6.2
semantic-release-bot Dec 29, 2020
b035c7a
feat: trigger feature release
prototypicalpro Dec 29, 2020
0f7e10c
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
2da6b72
chore(release): 1.7.0
semantic-release-bot Dec 29, 2020
698c3ed
feat: add action.yml to releaserc
prototypicalpro Dec 29, 2020
be40df2
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
b0ac8c1
chore(release): 1.8.0
semantic-release-bot Dec 29, 2020
ea86568
fix: update order of release steps
prototypicalpro Dec 29, 2020
13906c7
ci: update releaserc order
prototypicalpro Dec 29, 2020
383637e
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
6d0067d
chore(release): 1.8.1
semantic-release-bot Dec 29, 2020
7544abe
ci: move major version tag to after image publish
prototypicalpro Dec 29, 2020
a032e49
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
5e713ec
tests: remove references to prototypicalpro
prototypicalpro Dec 29, 2020
1c5008d
chore: revert changelog and package.json
prototypicalpro Dec 29, 2020
9e09f4c
chore: revert action.yml
prototypicalpro Dec 29, 2020
697cc5f
chore: update third-party manifest and notices [skip ci]
Dec 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,7 @@ jobs:
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update Major Version Tag
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -287,5 +282,11 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache
tags: >-
ghcr.io/${{ github.repository }}:latest,
ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_major_version }}.${{ steps.semantic.outputs.new_release_minor_version }},
ghcr.io/${{ github.repository }}:${{ steps.semantic.outputs.new_release_major_version }}.${{ steps.semantic.outputs.new_release_minor_version }}.${{ steps.semantic.outputs.new_release_patch_version }}
ghcr.io/${{ github.repository }}:v${{ steps.semantic.outputs.new_release_major_version }}.${{ steps.semantic.outputs.new_release_minor_version }},
ghcr.io/${{ github.repository }}:v${{ steps.semantic.outputs.new_release_major_version }}.${{ steps.semantic.outputs.new_release_minor_version }}.${{ steps.semantic.outputs.new_release_patch_version }}

- name: Update Major Version Tag
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-rulesets/repolinter-test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {
"linguist":"language",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rulesets/repolinter-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"$schema": https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json
"$schema": https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json
version: 2
axioms:
linguist: language
Expand Down
9 changes: 6 additions & 3 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
"@semantic-release/github",
["@semantic-release/exec", {
"prepareCmd": "sed -i \"s\/image:\\s*[\\\"\\']\\?[^\\\"\\'[:space:]]\\+[\\\"\\']\\?\/image: docker:\\\/\\\/ghcr.io\\\/newrelic\\\/repolinter-action:${nextRelease.gitTag}\/\" action.yml"
}],
["@semantic-release/npm", {
"npmPublish": false
}],
["@semantic-release/git", {
"assets": ["dist/*", "CHANGELOG.md", "package.json", "package-lock.json"],
"assets": ["dist/*", "CHANGELOG.md", "package.json", "package-lock.json", "action.yml"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}]
}],
"@semantic-release/github"
],
"dryRun": false,
"debug": true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,4 @@ If you have any questions, or to execute our corporate CLA, required if your con

repolinter-action is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.

> This repo also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third-party notices document.
> This repo also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the [third-party-notices](./THIRD_PARTY_NOTICES.md) document.
2 changes: 1 addition & 1 deletion __tests__/invalidsyntaxtestconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"the-axioms": {
"linguist":"language",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/invalidsyntaxtestconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
asdasd
"$schema": https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json
"$schema": https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json
version: 2
axioms:
linguist: language
Expand Down
2 changes: 1 addition & 1 deletion __tests__/invalidtestconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"the-axioms": {
"linguist":"language",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/invalidtestconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"$schema": https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json
"$schema": https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json
version: 2
axioms:
linguist: language
Expand Down
2 changes: 1 addition & 1 deletion __tests__/passingtestconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {
"linguist":"language",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/testconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {
"linguist":"language",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/testconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
"$schema": https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json
"$schema": https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json
version: 2
axioms:
linguist: language
Expand Down
2 changes: 1 addition & 1 deletion __tests__/testfolder/nestedtestconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/prototypicalpro/repolinter/master/rulesets/schema.json",
"$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json",
"version": 2,
"axioms": {},
"rules": {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion third_party_manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lastUpdated": "Mon Dec 28 2020 20:10:34 GMT+0000 (Coordinated Universal Time)",
"lastUpdated": "Tue Dec 29 2020 01:04:47 GMT+0000 (Coordinated Universal Time)",
"projectName": "repolinter-action",
"projectUrl": "https://github.com/newrelic/repolinter-action",
"includeDev": true,
Expand Down