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

Add GitHub workflows #21

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Report any bug to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information if relevant):**
- Libraries and versions
- Operating systems
- Related services

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/user_story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: User story
about: Describe the user story for the required change
title: ''
labels: ''
assignees: ''

---

**As a**
Specify the user type.

**I want**
Specify the goal(s) that you want to achieve.

**So that**
Describe the benefits that will be obtained from achieving the goal(s).
1 change: 1 addition & 0 deletions .github/actions/ci-action/action.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: 'CI'
runs:
using: 'docker'
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/publish-docker-base-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM shinesolutions/aem-platform-buildenv:3.2.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh", "$SHINEOPENSOURCE_DOCKERHUB_TOKEN"]
5 changes: 5 additions & 0 deletions .github/actions/publish-docker-base-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: 'Publish Docker Base'
runs:
using: 'docker'
image: 'Dockerfile'
8 changes: 8 additions & 0 deletions .github/actions/publish-docker-base-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
docker --version
source /home/.virtualenvs/py36/bin/activate
make clean deps lint build-docker-base
cat logs/aem-platform-buildenv-base.log
echo "${SHINEOPENSOURCE_DOCKERHUB_TOKEN}" | docker login --username shinesolutions --password-stdin
docker inspect shinesolutions/aem-platform-buildenv
make publish-docker-base
3 changes: 3 additions & 0 deletions .github/actions/release-major-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM shinesolutions/aem-platform-buildenv:3.2.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/actions/release-major-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: 'Release Major'
runs:
using: 'docker'
image: 'Dockerfile'
4 changes: 4 additions & 0 deletions .github/actions/release-major-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git config --global user.email "[email protected]"
git config --global user.name "Shine Works"
make release-major
3 changes: 3 additions & 0 deletions .github/actions/release-minor-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM shinesolutions/aem-platform-buildenv:3.2.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/actions/release-minor-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: 'Release Minor'
runs:
using: 'docker'
image: 'Dockerfile'
4 changes: 4 additions & 0 deletions .github/actions/release-minor-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git config --global user.email "[email protected]"
git config --global user.name "Shine Works"
make release-minor
3 changes: 3 additions & 0 deletions .github/actions/release-patch-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM shinesolutions/aem-platform-buildenv:3.2.0
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/actions/release-patch-action/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: 'Release Patch'
runs:
using: 'docker'
image: 'Dockerfile'
4 changes: 4 additions & 0 deletions .github/actions/release-patch-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
git config --global user.email "[email protected]"
git config --global user.name "Shine Works"
make release-patch
15 changes: 15 additions & 0 deletions .github/workflows/publish-docker-base-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish Docker Base
'on':
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
ref: main
- uses: ./.github/actions/publish-docker-base-action
env:
SHINEOPENSOURCE_DOCKERHUB_TOKEN: ${{ secrets.SHINEOPENSOURCE_DOCKERHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .github/workflows/release-major-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Release Major
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/release-major-action
9 changes: 9 additions & 0 deletions .github/workflows/release-minor-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Release Minor
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/release-minor-action
9 changes: 9 additions & 0 deletions .github/workflows/release-patch-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Release Patch
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.github/actions/release-patch-action