Skip to content

Commit

Permalink
chore: add pipeline for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
slimm609 committed Mar 24, 2022
1 parent bef7a7e commit c2cf317
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: build-workflow
# This workflow is triggered on pushes to the repository.
on: [push, pull_request]
on:
push:
branches:
- "*"
pull_request:

jobs:
build:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/release-workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release-workflow
# This workflow is triggered on pushes to the repository.
on:
push:
tags:
- '*'

jobs:
publish:
name: publish-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build-base
run: |
cd base-image && make build-image
- name: push-image
run: |
cd config-reloader && make push-image
env:
TAG: ${{github.ref_name}}
8 changes: 4 additions & 4 deletions config-reloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ delete-test-ns:

run-loop-fs: install
rm -fr tmp
config-reloader \
./config-reloader \
--interval 5 \
--log-level=debug \
--output-dir=tmp \
Expand All @@ -99,7 +99,7 @@ run-loop-fs: install

run-once-fs: install
rm -fr tmp
config-reloader \
./config-reloader \
--interval 0 \
--log-level=debug \
--fluentd-loglevel=debug \
Expand All @@ -114,7 +114,7 @@ run-once-fs: install

run-once: install
rm -fr tmp
config-reloader \
./config-reloader \
--interval 0 \
--log-level=debug \
--fluentd-loglevel=debug \
Expand All @@ -127,7 +127,7 @@ run-once: install

run-loop: install
rm -fr tmp
config-reloader \
./config-reloader \
--interval 5 \
--log-level=debug \
--fluentd-loglevel=debug \
Expand Down

0 comments on commit c2cf317

Please sign in to comment.