-
-
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.
Add GitHub action flow for pushting the image to the docker hub
- Loading branch information
Showing
10 changed files
with
166 additions
and
2 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 @@ | ||
github: [FuturePortal, rick-nu] |
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,15 @@ | ||
--- | ||
name: Bug report | ||
about: Submit a bug report. | ||
title: '' | ||
labels: 'bug' | ||
assignees: '' | ||
--- | ||
|
||
# What | ||
|
||
Please explain the bug here. | ||
|
||
## Reproduction scenario | ||
|
||
If applicable, please describe how to reproduce the situation. |
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,15 @@ | ||
--- | ||
name: Feature request | ||
about: Request a feature. | ||
title: '' | ||
labels: 'feature' | ||
assignees: '' | ||
--- | ||
|
||
# What | ||
|
||
Please explain what you would like. | ||
|
||
## Why | ||
|
||
Please explain why you would want this feature. |
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,7 @@ | ||
# What | ||
|
||
Please explain here what this PR contains. | ||
|
||
## Why | ||
|
||
Please explain why you want this change in the project. |
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,9 @@ | ||
name: PR codestyle tests | ||
on: | ||
pull_request: | ||
branches: | ||
- production | ||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/job--test-and-lint.yml |
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,19 @@ | ||
name: Build the CIMonitor latest container | ||
on: | ||
push: | ||
branches: | ||
- production | ||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/job--test-and-lint.yml | ||
|
||
build: | ||
name: Build | ||
uses: ./.github/workflows/job--build-containers.yml | ||
needs: test | ||
with: | ||
BASE_TAG: latest | ||
secrets: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} |
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,19 @@ | ||
name: Tag new CIMonitor release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/job--test-and-lint.yml | ||
|
||
build: | ||
name: Build | ||
uses: ./.github/workflows/job--build-containers.yml | ||
needs: test | ||
with: | ||
BASE_TAG: ${GITHUB_REF/refs\/tags\//} | ||
secrets: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }} |
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,31 @@ | ||
name: Build and tag container | ||
on: | ||
workflow_call: | ||
inputs: | ||
BASE_TAG: | ||
description: The base of the tag to build | ||
required: true | ||
type: string | ||
secrets: | ||
DOCKER_USERNAME: | ||
required: true | ||
DOCKER_TOKEN: | ||
required: true | ||
jobs: | ||
build-and-tag-container: | ||
name: Build & Tag | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build CIMonitor image | ||
run: docker build --target production --tag rickvdstaaij/move-to-dropbox:latest . | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Push docker image to the hub | ||
run: docker push rickvdstaaij/move-to-dropbox:latest |
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,48 @@ | ||
name: Test and lint | ||
on: | ||
workflow_call: | ||
jobs: [] | ||
# eslint: | ||
# name: ESLint | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 20 | ||
# | ||
# - name: Install development dependencies | ||
# run: yarn install --ignore-scripts | ||
# | ||
# - name: Run eslint check | ||
# run: node_modules/.bin/eslint --ext ts,tsx . | ||
# | ||
# frontend-typescript: | ||
# name: Frontend typescript | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 20 | ||
# | ||
# - name: Install development dependencies | ||
# run: yarn install --ignore-scripts | ||
# | ||
# - name: Check frontend typescript | ||
# run: node_modules/.bin/tsc --noEmit --project ./frontend/tsconfig.json | ||
# | ||
# backend-typescript: | ||
# name: Backend typescript | ||
# runs-on: ubuntu-22.04 | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 20 | ||
# | ||
# - name: Install development dependencies | ||
# run: yarn install --ignore-scripts | ||
# | ||
# - name: Check backend typescript | ||
# run: node_modules/.bin/tsc --noEmit --project ./backend/tsconfig.json |
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