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:
- branches-ignore:
- master
- workflow_dispatch:
jobs:
Build-Docker:

@ -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 }}
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 }}