forked from spiffe/tornjak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Tornjak image v1.4.0 (spiffe#286)
- Loading branch information
Showing
40 changed files
with
2,280 additions
and
1,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
open-pull-requests-limit: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,47 @@ jobs: | |
tornjak-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Show trigger info | ||
run: | | ||
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | ||
# Workflow job info | ||
- 🎉 The job was automatically triggered by a ${{ github.event_name }} event. | ||
- 🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub! | ||
- 🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}. | ||
EOF | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/[email protected] | ||
|
||
- name: Install Golang | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4.0.1 | ||
with: | ||
go-version: '1.17' | ||
- uses: actions/setup-node@v2 | ||
go-version-file: go.mod | ||
check-latest: true | ||
cache: true | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: '15' | ||
node-version: '18' | ||
|
||
- name: Download modules | ||
run: go mod download | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
uses: golangci/golangci-lint-action@v3.6.0 | ||
with: | ||
version: v1.29 | ||
args: --timeout 5m | ||
- name: Run make all | ||
run: make all | ||
- run: echo "🍏 This job's status is ${{ job.status }}." | ||
version: v1.53 | ||
args: --timeout 7m | ||
|
||
- name: Build binaries | ||
run: make binaries | ||
|
||
- name: Build images | ||
run: make images | ||
|
||
- name: Print job result | ||
run: | | ||
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | ||
- 🍏 This job's status is ${{ job.status }}. | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,31 +3,49 @@ on: | |
push: | ||
branches: | ||
- main | ||
- v1.2 | ||
- v1.3 | ||
- v1.4 | ||
jobs: | ||
tornjak-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
- name: Show trigger info | ||
run: | | ||
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | ||
# Workflow job info | ||
- 🎉 The job was automatically triggered by a ${{ github.event_name }} event. | ||
- 🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub! | ||
- 🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}. | ||
EOF | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
uses: actions/[email protected] | ||
|
||
- name: Install Golang | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4.0.1 | ||
with: | ||
go-version: '1.17' | ||
- uses: actions/setup-node@v3 | ||
go-version-file: go.mod | ||
check-latest: true | ||
cache: true | ||
|
||
- name: Download modules | ||
run: go mod download | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
|
||
- name: Download modules | ||
run: go mod download | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
uses: golangci/golangci-lint-action@v3.6.0 | ||
with: | ||
version: v1.29 | ||
args: --timeout 5m | ||
version: v1.53 | ||
args: --timeout 7m | ||
|
||
- name: Log in to GHCR.io | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v2.2.0 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
|
@@ -36,16 +54,25 @@ jobs: | |
# set repo and GITHUB SHA | ||
- name: Set github commit id | ||
run: echo "GITHUB_SHA=$GITHUB_SHA" >> $GITHUB_ENV | ||
|
||
- name: Set release repo | ||
run: echo "REPO=ghcr.io/${{ github.repository_owner }}" >> $GITHUB_ENV | ||
|
||
# build and push images tagged with GITHUB_SHA, version, and latest | ||
- name: Build and push tornjak backend image | ||
run: make container-backend-push | ||
run: make release-tornjak-backend | ||
|
||
- name: Build and push tornjak frontend image | ||
run: make container-frontend-push | ||
run: make release-tornjak-frontend | ||
|
||
- name: Build and push tornjak image (frontend+backend) | ||
run: make container-tornjak-push | ||
run: make release-tornjak | ||
|
||
- name: Build and push tornjak manager image | ||
run: make container-manager-push | ||
- run: echo "🍏 This job's status is ${{ job.status }}." | ||
run: make release-tornjak-manager | ||
|
||
- name: Print job result | ||
run: | | ||
cat <<EOF >>"${GITHUB_STEP_SUMMARY}" | ||
- 🍏 This job's status is ${{ job.status }}. | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.