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