fixes
This commit is contained in:
parent
6a6ce218d5
commit
1c587b9b4b
2 changed files with 23 additions and 5 deletions
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
|
|
@ -8,5 +8,5 @@ updates:
|
|||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 10
|
||||
|
|
|
|||
26
.github/workflows/docker-image.yml
vendored
26
.github/workflows/docker-image.yml
vendored
|
|
@ -2,13 +2,12 @@ name: Docker Image CI
|
|||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
schedule:
|
||||
- cron: "0 * * * *"
|
||||
jobs:
|
||||
build:
|
||||
status-build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged == false
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check new version
|
||||
|
|
@ -65,4 +64,23 @@ jobs:
|
|||
run: git fetch origin master
|
||||
- name: push code to master
|
||||
if: steps.status.outcome == 'success'
|
||||
run: git push origin HEAD:master
|
||||
run: git push origin HEAD:master
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged == true
|
||||
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
|
||||
Loading…
Reference in a new issue