Skip to content

Commit decebe0

Browse files
authored
Merge pull request #8 from scribd/maksimt/SERF-1350/use-github-workflow
[SERF-1350] Use Github workflow instead of Jenkins pipeline
2 parents db3727b + 6e38565 commit decebe0

File tree

4 files changed

+55
-81
lines changed

4 files changed

+55
-81
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: push
4+
5+
env:
6+
DOCKER_CACHE_PATH: ${{ github.workspace }}/tmp/docker-cache
7+
DOCKER_BUILDKIT: 1
8+
BUILDX_CACHE_PATH: /tmp/.buildx-cache
9+
10+
jobs:
11+
validate:
12+
name: validate
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup terraform
19+
uses: hashicorp/setup-terraform@v1
20+
with:
21+
terraform_version: 0.13.7
22+
23+
- run: terraform init -input=false
24+
- run: terraform fmt -check -diff -recursive
25+
26+
- run: terraform validate
27+
env:
28+
AWS_DEFAULT_REGION: "us-east-2"
29+
TF_IN_AUTOMATION: "true"

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Release
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Semantic Release
14+
uses: cycjimmy/semantic-release-action@v2
15+
with:
16+
semantic_version: 17.4.4
17+
extra_plugins: |
18+
@semantic-release/changelog@5.0.1
19+
@semantic-release/exec@5.0.0
20+
@semantic-release/git@9.0.0
21+
@semantic-release/github@7.2.3
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.SCRIBD_GITHUB_RELEASE_TOKEN }}

Jenkinsfile

Lines changed: 0 additions & 79 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ Releases are done from the `origin/main` branch using a manual step at the end o
110110
In order to create a new release:
111111

112112
1. Merge / push changes to `origin/main`
113-
2. Open the `origin/main` [Jenkins CI/CD pipeline](https://jenkins.private.scribd.com/job/Service%20Foundations/job/terraform-aws-app-secrets/job/main/)
114-
3. Click "Proceed" button on the release step
113+
2. Open the `Release` [Github workflow](https://github.com/scribd/terraform-aws-app-secrets/actions/workflows/release.yml)
114+
3. Click `Run workflow` dropdown in the top right corner of the table listing the workflow runs
115+
4. Choose the `main` branch and click `Run workflow` button to start the process
115116

116117
A version bump will happen automatically and the type of version bump
117118
(patch, minor, major) depends on the commits introduced since the last release.

0 commit comments

Comments
 (0)