From 154fc050cd7b8f1d9094a49e93f26810217c13aa Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Sat, 3 Feb 2024 22:35:30 +0100 Subject: [PATCH] config: add docker image workflow --- .../workflows/{ci.yml => code-quality.yml} | 2 +- .github/workflows/docker-image.yml | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) rename .github/workflows/{ci.yml => code-quality.yml} (97%) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/code-quality.yml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/code-quality.yml index cdd48bb9c..0c427653f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/code-quality.yml @@ -1,4 +1,4 @@ -name: CI +name: Code quality analysis on: pull_request: diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000..62f4d7916 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,29 @@ +name: Docker image + +on: + push: + branches: + - main + workflow_dispatch: {} + +permissions: + contents: write + +jobs: + deploy: + name: Deploy docker image + runs-on: ubuntu-latest + steps: + - name: Discord notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: 'Deployment of an image has been triggered' + - uses: actions/checkout@v4 + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.64.0 # Don't use @master or @v1 unless you're happy to test the latest version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: false + DRY_RUN: true \ No newline at end of file