From c6d7126d2a08d005d532851076ac692db0d1a054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Sun, 19 Jan 2025 23:01:34 +0100 Subject: [PATCH] Better test workflow --- .github/workflows/release.yml | 10 ++++++---- .github/workflows/test.yml | 10 +++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0733662..6bc782b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,9 +25,11 @@ jobs: - name: Set version from input if: github.event_name == 'workflow_dispatch' run: echo "TAG_NAME=${{ github.event.inputs.version }}" >> $GITHUB_ENV + - name: Registry login + run: docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}" - name: Final build - run: | - docker login gitea.ceperka.net -u "${{ secrets.HARBOR_REPO_USERNAME }}" -p "${{ secrets.HARBOR_REPO_PASSWORD }}" - task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }} - task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }} + run: task squashed REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }} + - name: Push: + run: task push REPO=harbor.rosti.cz/rosti/runtime VERSION=${{ env.TAG_NAME }} + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbcad49..62f9e45 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,11 +9,15 @@ jobs: runs-on: [dev, amd64] steps: - uses: actions/checkout@v4 - - name: Test build + - name: docker login run: | - # echo "${{ secrets.repo_password }}" | podman login -u $USERNAME --password-stdin $REPO docker login gitea.ceperka.net -u "${{ secrets.REPO_USERNAME }}" -p "${{ secrets.REPO_PASSWORD }}" - task pipeline REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline + - name: Build + run: task build REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline + - name: Test + run: task test REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline + - name: Push + run: task push REPO=gitea.ceperka.net/rosti/runtime VERSION=pipeline - name: Cleaning step if: always() run: docker stop dev_test