slight refactor

This commit is contained in:
tueem 2024-10-18 23:24:38 +02:00
parent 08d62b792b
commit b1c711694b
Signed by: tueem
GPG Key ID: 65C8667EC17A88FB
2 changed files with 10 additions and 10 deletions

@ -3,7 +3,6 @@ on:
- push: - push:
- branches-ignore: - branches-ignore:
- master - master
- workflow_dispatch:
jobs: jobs:
Build-Docker: Build-Docker:

@ -1,9 +1,8 @@
name: Test build name: Deploy
on: on:
- push: - push:
- branches: - branches:
- master - master
- workflow_dispatch:
jobs: jobs:
@ -16,10 +15,12 @@ jobs:
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Build Docker Image - name: Build Docker Image
run: docker buildx build -t ${{ vars.DOCKER_TAG }} . run: docker buildx build -t ${{ vars.DOCKER_TAG }} .
- name: Log in to Docker Hub
uses: docker/login-action@v2 Push-Docker:
with: - name: Log in to Docker Hub
username: ${{ secrets.DOCKER_USERNAME }} uses: docker/login-action@v2
password: ${{ secrets.DOCKER_PASSWORD }} with:
- name: Push Docker image username: ${{ secrets.DOCKER_USERNAME }}
run: docker push ${{ vars.DOCKER_TAG }} password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker push ${{ vars.DOCKER_TAG }}