Skip to content

Commit

Permalink
Override custom release to Appian docker registry
Browse files Browse the repository at this point in the history
  • Loading branch information
rohithrrao committed May 10, 2024
1 parent 292d52e commit 1009d88
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- gitlab-forked-from-project

pull_request:
types:
Expand All @@ -17,8 +18,8 @@ on:
workflow_dispatch:
inputs:
dryRun:
description: 'Dry-Run'
default: 'true'
description: "Dry-Run"
default: "true"
required: false

permissions:
Expand Down Expand Up @@ -569,7 +570,7 @@ jobs:

test-e2e:
needs: [build]
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
timeout-minutes: 7

if: github.event.pull_request.draft != true
Expand Down Expand Up @@ -614,7 +615,7 @@ jobs:
- codecov
- coverage-threshold

if: github.repository == 'renovatebot/renovate' && github.event_name != 'pull_request'
# if: github.repository == 'renovatebot/renovate' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
Expand Down Expand Up @@ -646,7 +647,7 @@ jobs:

- name: Docker registry login
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
# echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
- name: Check dry run
Expand All @@ -661,8 +662,8 @@ jobs:
- name: semantic-release
run: |
pnpm semantic-release --dry-run ${{env.DRY_RUN}}
pnpm semantic-release --dry-run false
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # TODO: use action token?
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # TODO: use action token?
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
LOG_LEVEL: debug
7 changes: 2 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
Expand All @@ -14,7 +13,6 @@
]
}
],
"@semantic-release/npm",
[
"@semantic-release/exec",
{
Expand Down Expand Up @@ -91,8 +89,7 @@
},
"tagFormat": "${version}",
"branches": [
{
"name": "main"
}
{ "name": "main" },
{ "name": "gitlab-forked-from-project"}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/renovatebot/renovate.git"
"url": "https://github.com/appian/renovate.git"
},
"keywords": [
"automated",
Expand Down
2 changes: 1 addition & 1 deletion tools/docker/bake.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variable "OWNER" {
default = "renovatebot"
default = "appian"
}
variable "FILE" {
default = "renovate"
Expand Down
4 changes: 2 additions & 2 deletions tools/publish-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void (async () => {

if (meta?.['push-slim']?.['containerimage.digest']) {
sign(
`ghcr.io/renovatebot/renovate@${meta['push-slim']['containerimage.digest']}`,
`ghcr.io/appian/renovate@${meta['push-slim']['containerimage.digest']}`,
opts,
);
sign(
Expand All @@ -39,7 +39,7 @@ void (async () => {

if (meta?.['push-full']?.['containerimage.digest']) {
sign(
`ghcr.io/renovatebot/renovate@${meta['push-full']['containerimage.digest']}`,
`ghcr.io/appian/renovate@${meta['push-full']['containerimage.digest']}`,
opts,
);
sign(
Expand Down

0 comments on commit 1009d88

Please sign in to comment.