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

GitHub workflow release #367

Merged
merged 64 commits into from
Mar 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
79b965a
Adding Make Release Notes workflow
Mar 15, 2023
9bd1a9d
Merge branch 'master' into github-workflow-release
Mar 15, 2023
8b5ceb3
Updated Workflow
Mar 16, 2023
8ae9459
Minor Fixes
Mar 16, 2023
569a2de
Minor Fixes
Mar 16, 2023
a3bca74
Testing
Mar 16, 2023
a116fd1
Removed Release Notes yaml
Mar 16, 2023
c2c8503
Fixed url for build-docker yml
Mar 16, 2023
4ca00ae
Fixed url for build-docker yml
Mar 16, 2023
488ebbf
Fixed url for build-docker yml
Mar 16, 2023
460bcad
Added enabled flag
Mar 16, 2023
90ac0ea
Adding Enabled input
Mar 16, 2023
2ad16ec
Merge branch 'master' into github-workflow-release
Mar 16, 2023
5c591f3
Changes to try secrets inheritence
Mar 16, 2023
6a162c5
Trying out RN generation
Mar 16, 2023
36dc73c
Trying out RN generation
Mar 16, 2023
d343203
Trying out RN generation
Mar 16, 2023
be5d52c
Trying out RN generation
Mar 16, 2023
3b92794
Testing
Mar 16, 2023
7dda8b8
Trying out With Tag
Mar 16, 2023
78604e9
Trying out With Tag
Mar 16, 2023
40d6ba4
Trying out With Tag
Mar 16, 2023
49cd03e
More fixes
Mar 16, 2023
bd2d24d
Tweaks
Mar 17, 2023
62d8496
Tweaks
Mar 17, 2023
dd03254
Tweaks
Mar 17, 2023
2856c38
Tweaks
Mar 17, 2023
e2e3392
Tweaks
Mar 17, 2023
da0f516
Tweaks
Mar 17, 2023
6c6c42d
Tweaks
Mar 17, 2023
8f4414b
Tweaks
Mar 17, 2023
dc92c03
Tweaks
Mar 17, 2023
7c60b2e
Tweaks
Mar 17, 2023
820e02d
Tweaks
Mar 17, 2023
c867cfe
Jobs ID reference changed
Mar 17, 2023
f0ba816
Jobs ID reference changed
Mar 17, 2023
fabd28f
Adding concurrency
Mar 17, 2023
b6fd5af
Jobs ID reference changed
Mar 17, 2023
9818cd7
Jobs ID reference changed
Mar 17, 2023
5eaa8dd
Jobs ID reference changed
Mar 17, 2023
cb98938
Jobs ID reference changed
Mar 17, 2023
18e795a
Jobs ID reference changed
Mar 17, 2023
8f3611f
Jobs ID reference changed
Mar 17, 2023
02dafd2
Playing with concurrency
Mar 17, 2023
4f93fea
Added pre release tag
Mar 17, 2023
14e9d5d
Testing
Mar 17, 2023
0d97274
Testing
Mar 17, 2023
0a150a7
Testing
Mar 17, 2023
01db83d
Testing
Mar 17, 2023
04f07bf
Testing
Mar 17, 2023
913728c
Testing
Mar 17, 2023
7822e82
Testing
Mar 17, 2023
1ccb1cf
Testing
Mar 17, 2023
e7b9783
Testing
Mar 17, 2023
0eec859
Testing
Mar 17, 2023
e3a2b96
Testing
Mar 17, 2023
27a6bb0
Testing
Mar 17, 2023
41291aa
Seperated Docker command into separate lines
Mar 18, 2023
a763801
Seperated Docker command into separate lines
Mar 18, 2023
367a20c
Seperated Docker command into separate lines
Mar 18, 2023
c8e10e9
Seperated Docker command into separate lines
Mar 18, 2023
cc6e5ce
Seperated Docker command into separate lines
Mar 18, 2023
0a448b7
Delete generate_readme.yaml
jayasimha-raghavan-unskript Mar 18, 2023
ffa3bd3
Delete lint-test.yaml
jayasimha-raghavan-unskript Mar 18, 2023
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
42 changes: 41 additions & 1 deletion .github/workflows/build-and-release-docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
name: Build and Release Docker

on:
workflow_call:
inputs:
enabled:
required: true
type: boolean
release_tag:
required: true
type: string
elyra_branch:
required: false
default: "master"
type: string
unskript_branch:
required: false
default: "master"
type: string
celltoolbar_branch:
required: false
default: "master"
type: string
snippet_branch:
required: false
default: "master"
type: string
awesome_branch:
required: false
default: "master"
type: string
devops_branch:
required: false
default: "master"
type: string
build_number:
required: true
type: string
latest:
required: false
default: true
type: boolean

workflow_dispatch:
inputs:
enabled:
Expand Down Expand Up @@ -56,7 +96,7 @@ env:
DOCKER_IMAGE: unskript/awesome-runbooks
DOCKER_USERNAME: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
USERNAME: "jayasimha-raghavan-unskript"
USERNAME: ${{ secrets.BUILD_USER }}
DOCKER_TARGET: linux/amd64, linux/arm64

jobs:
Expand Down
56 changes: 0 additions & 56 deletions .github/workflows/generate_readme.yaml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/lint-test.yaml

This file was deleted.

77 changes: 77 additions & 0 deletions .github/workflows/make-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Make Release

on:
workflow_dispatch:

jobs:
make-release:
runs-on: ubuntu-latest
outputs:
GITHUB_ONLY_TAG: ${{ steps.sanitize_tag.outputs.GITHUB_ONLY_TAG }}
GITHUB_CHANGELOG: ${{ steps.tag_version.outputs.changelog }}
steps:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow
- name: Bump version and push
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.BUILDER_PAT }}
dry_run: true
default_bump: minor
default_prerelease_bump: minor
append_to_pre_release_tag: ""
tag_prefix: ""

- name: Sanitize Tag
id: sanitize_tag
run: |
TAG_NAME=$(echo ${{ steps.tag_version.outputs.new_tag }} | cut -d '-' -f 1)
echo "GITHUB_ONLY_TAG=$TAG_NAME" >> $GITHUB_ENV
echo "GITHUB_CHANGELOG=${{ steps.tag_version.outputs.changelog }}" >> $GITHUB_ENV
echo "TAGNAME: $TAG_NAME"
echo "GITHUB_ONLY_TAG=$TAG_NAME" >> $GITHUB_OUTPUT
echo "GITHUB_CHANGELOG=${{ steps.tag_version.outputs.changelog }}" >> $GITHUB_OUTPUT

- name: Create Docker ReleaseNotes
id: create_docker_rn
run: |
echo "## Awesome Docker" > /tmp/docker_rn.md
echo "" >> /tmp/docker_rn.md
echo "" >> /tmp/docker_rn.md
echo "Please find the Latest build [Here](https://hub.docker.com/r/unskript/awesome-runbooks/tags)" >> /tmp/docker_rn.md
echo "" >> /tmp/docker_rn.md
echo "${{ steps.tag_version.outputs.changelog }}" >> /tmp/docker_rn.md
cat /tmp/docker_rn.md

- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.sanitize_tag.outputs.GITHUB_ONLY_TAG }}
name: Release ${{ steps.sanitize_tag.outputs.GITHUB_ONLY_TAG }}
bodyFile: "/tmp/docker_rn.md"
generateReleaseNotes: true
makeLatest: legacy
omitBody: false
omitBodyDuringUpdate: false
omitDraftDuringUpdate: false
omitName: false
omitNameDuringUpdate: false
omitPrereleaseDuringUpdate: false
removeArtifacts: false
replacesArtifacts: true
skipIfReleaseExists: false
updateOnlyUnreleased: false

build-docker:
needs: make-release
uses: "./.github/workflows/build-and-release-docker.yml"
with:
enabled: true
release_tag: "${{ needs.make-release.outputs.GITHUB_ONLY_TAG }}"
build_number: "${{ needs.make-release.outputs.GITHUB_ONLY_TAG }}"
elyra_branch: "master"
unskript_branch: "master"
celltoolbar_branch: "master"
snippet_branch: "master"
secrets: inherit