Skip to content

Commit

Permalink
build: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Oct 12, 2022
1 parent 93e9b55 commit 1461c78
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Docker Image (Check)

on:
# trigger on any pull requests
pull_request:
branches:
- "**"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3

- name: "Docker: Build and Push Image"
id: ghcr-docker
uses: 'penguin-statistics/actions/ghcr-docker@main'
with:
version: '__check__'
repository: 'penguin-statistics/gopkgserver'
push: false
39 changes: 39 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Docker Image (Release)

on:
push:
# trigger on version tag push
tags:
- "v*"

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3

- name: "Metadata: Git"
id: git-meta
uses: 'penguin-statistics/actions/git-meta@main'

- name: "Docker: Build and Push Image"
id: ghcr-docker
uses: 'penguin-statistics/actions/ghcr-docker@main'
with:
version: ${{ steps.git-meta.outputs.version }}
repository: 'penguin-statistics/gopkgserver'

- name: "Release: Call Dispatcher"
id: release-dispatcher
uses: 'penguin-statistics/actions/release-dispatcher@main'
with:
version: ${{ steps.git-meta.outputs.version }}
use-ghrelease: true
# use-manifestbot: true
# manifestbot-file-path: 'applications/gopkgserver/values-prod.yaml'
# manifestbot-token: ${{ secrets.PAT_FOR_MANIFESTBOT }}

0 comments on commit 1461c78

Please sign in to comment.