From b1c711694bcca2a65448879d6421a416191e78d8 Mon Sep 17 00:00:00 2001 From: tueem Date: Fri, 18 Oct 2024 23:24:38 +0200 Subject: [PATCH] slight refactor --- .gitea/workflows/build.yaml | 1 - .gitea/workflows/deploy.yaml | 19 ++++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 258e5ae..316c921 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,7 +3,6 @@ on: - push: - branches-ignore: - master - - workflow_dispatch: jobs: Build-Docker: diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index a1ef8eb..7fa02ec 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,9 +1,8 @@ -name: Test build +name: Deploy on: - push: - branches: - master - - workflow_dispatch: jobs: @@ -16,10 +15,12 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Build Docker Image run: docker buildx build -t ${{ vars.DOCKER_TAG }} . - - name: Log in to Docker Hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Push Docker image - run: docker push ${{ vars.DOCKER_TAG }} \ No newline at end of file + + Push-Docker: + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Push Docker image + run: docker push ${{ vars.DOCKER_TAG }} \ No newline at end of file