This commit is contained in:
AndrewMarchukov 2022-10-04 23:07:22 +04:00
parent ce759a9707
commit 1685737332
2 changed files with 25 additions and 18 deletions

25
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Build
on:
workflow_run:
workflows: ["Dependabot auto-merge"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: build
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: andrewmhub/insurgency-sandstorm:latest

View file

@ -22,21 +22,3 @@ jobs:
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: build
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: andrewmhub/insurgency-sandstorm:latest