slight refactor
This commit is contained in:
parent
08d62b792b
commit
b1c711694b
@ -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 }}
|
Loading…
x
Reference in New Issue
Block a user