Compare commits
2 Commits
b1c711694b
...
8fd8ccc797
Author | SHA1 | Date | |
---|---|---|---|
8fd8ccc797 | |||
1b627da61c |
@ -1,7 +1,7 @@
|
|||||||
name: Test build
|
name: Test build
|
||||||
on:
|
on:
|
||||||
- push:
|
push:
|
||||||
- branches-ignore:
|
branches-ignore:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
on:
|
on:
|
||||||
- push:
|
push:
|
||||||
- branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Docker:
|
BuildandPush-Docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
@ -15,12 +14,10 @@ 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
|
||||||
Push-Docker:
|
uses: docker/login-action@v2
|
||||||
- name: Log in to Docker Hub
|
with:
|
||||||
uses: docker/login-action@v2
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
with:
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
- name: Push Docker image
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
run: docker push ${{ vars.DOCKER_TAG }}
|
||||||
- name: Push Docker image
|
|
||||||
run: docker push ${{ vars.DOCKER_TAG }}
|
|
Loading…
x
Reference in New Issue
Block a user