Skip to content

Commit

Permalink
Cleanup github workflows
Browse files Browse the repository at this point in the history
Took 9 minutes
  • Loading branch information
Fank committed Oct 22, 2024
1 parent bc2dc44 commit 2d805fe
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 38 deletions.
14 changes: 9 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/docker-description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker Hub Description
uses: peter-evans/[email protected]
if: ${{ env.DOCKER_USERNAME != '' && env.DOCKER_PASSWORD != '' }}
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/docker.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d805fe

Please sign in to comment.