diff --git a/.github/workflows/build-workflow.yaml b/.github/workflows/build-workflow.yaml index 740820ca..ffdca68c 100644 --- a/.github/workflows/build-workflow.yaml +++ b/.github/workflows/build-workflow.yaml @@ -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: diff --git a/.github/workflows/release-workflow.yaml b/.github/workflows/release-workflow.yaml new file mode 100644 index 00000000..00cd3432 --- /dev/null +++ b/.github/workflows/release-workflow.yaml @@ -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}} diff --git a/config-reloader/Makefile b/config-reloader/Makefile index 39e82f7d..be1f1df2 100644 --- a/config-reloader/Makefile +++ b/config-reloader/Makefile @@ -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 \ @@ -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 \ @@ -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 \ @@ -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 \