Cleanup github workflows

Took 9 minutes
This commit is contained in:
Florian Kinder 2024-10-22 06:46:18 +02:00
parent bc2dc44cad
commit 2d805feb4f
6 changed files with 26 additions and 38 deletions

View File

@ -1,7 +1,11 @@
version: 2
updates:
- package-ecosystem: docker
directory: "/docker"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: docker
directory: "/docker"
schedule:
interval: "daily"

View File

@ -4,19 +4,25 @@ on:
push:
branches:
- master
tags:
- latest
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: build and push
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
./build.py --push-tags --multiarch
./build.py --push-tags --multiarch

View File

@ -11,6 +11,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2.4.1
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}

View File

@ -1,22 +0,0 @@
name: Docker build
on:
pull_request:
push:
tags:
- latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: build
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: |
./build.py --multiarch

View File

@ -10,7 +10,9 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: shellcheck
uses: reviewdog/action-shellcheck@v1
with:
@ -20,7 +22,9 @@ jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
- name: hadolint
uses: reviewdog/action-hadolint@v1
with:

View File

@ -4,20 +4,15 @@ on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
inputs:
desc:
description: "desc"
required: false
jobs:
build:
check:
runs-on: ubuntu-latest
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'factoriotools/factorio-docker')
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.REPO_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Run update script
run: ./update.sh