From b753993386c1738555ebacfc95b4146fd6866e27 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Wed, 10 Jun 2020 11:43:24 +0200 Subject: [PATCH 1/4] feat(Docker):added actions for release image and dev image --- .github/workflows/devDocker.yml | 22 ++++++++++++++++++++++ .github/workflows/releaseDocker.yml | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/devDocker.yml create mode 100644 .github/workflows/releaseDocker.yml diff --git a/.github/workflows/devDocker.yml b/.github/workflows/devDocker.yml new file mode 100644 index 0000000..521f02f --- /dev/null +++ b/.github/workflows/devDocker.yml @@ -0,0 +1,22 @@ +name: Publish Dev Docker +on: + push: + branches: + - 'dev' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Workflow run cleanup action + uses: rokroskar/workflow-run-cleanup-action@v0.2.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: denbicloud/os_project_usage_exporter + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + dockerfile: Dockerfile + tags: "dev" diff --git a/.github/workflows/releaseDocker.yml b/.github/workflows/releaseDocker.yml new file mode 100644 index 0000000..0e95426 --- /dev/null +++ b/.github/workflows/releaseDocker.yml @@ -0,0 +1,22 @@ +ame: Create Release Image +on: + push: + tags: + - '*' +jobs: + build_release: + runs-on: ubuntu-latest + + steps: + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: denbicloud/os_project_usage_exporter + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + dockerfile: Dockerfile + tags: ${{ steps.get_version.outputs.VERSION }} From 231a582b2fb06781da57fc6ba9c40b54f93210e5 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Wed, 10 Jun 2020 12:57:47 +0200 Subject: [PATCH 2/4] Update devDocker.yml --- .github/workflows/devDocker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/devDocker.yml b/.github/workflows/devDocker.yml index 521f02f..f75448e 100644 --- a/.github/workflows/devDocker.yml +++ b/.github/workflows/devDocker.yml @@ -3,6 +3,7 @@ on: push: branches: - 'dev' + jobs: build: runs-on: ubuntu-latest From 24f095bb1bc4624cf51d16a59a2b8a17301be3be Mon Sep 17 00:00:00 2001 From: dweinholz Date: Wed, 10 Jun 2020 13:12:22 +0200 Subject: [PATCH 3/4] Update devDocker.yml --- .github/workflows/devDocker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/devDocker.yml b/.github/workflows/devDocker.yml index f75448e..521f02f 100644 --- a/.github/workflows/devDocker.yml +++ b/.github/workflows/devDocker.yml @@ -3,7 +3,6 @@ on: push: branches: - 'dev' - jobs: build: runs-on: ubuntu-latest From 04148a1ead07cdd2ce10a6c1bfb1190061622789 Mon Sep 17 00:00:00 2001 From: dweinholz Date: Wed, 10 Jun 2020 22:47:51 +0200 Subject: [PATCH 4/4] fixed action --- .github/workflows/releaseDocker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/releaseDocker.yml b/.github/workflows/releaseDocker.yml index 0e95426..e0c312b 100644 --- a/.github/workflows/releaseDocker.yml +++ b/.github/workflows/releaseDocker.yml @@ -1,4 +1,4 @@ -ame: Create Release Image +name: Create Release Image on: push: tags: