From e1c47572a6235fd8fd20af888ac3a11c7ae1369d Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sat, 10 Feb 2024 18:37:40 -0700 Subject: updates --- .github/dependabot.yml | 6 +++--- .github/workflows/docker.yml | 26 +++++++++----------------- 2 files changed, 12 insertions(+), 20 deletions(-) (limited to '.github') diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 26048be..9f4801c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ updates: schedule: interval: "daily" # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "daily" + interval: 'daily' diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0d457af..c5fd90f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,18 +8,16 @@ on: workflow_dispatch: inputs: message: - description: "Message for build" + description: 'Message for build' required: true jobs: docker: runs-on: ubuntu-22.04 steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v4 - - - name: Check whether there are any commits since this run was last triggered and push them and/or set the output + - name: Check whether there are any commits since this run was last triggered and push them and/or set the output id: should_run run: | git config user.name github-actions @@ -59,8 +57,7 @@ jobs: echo "Pushing rebased commits" git push origin $(git rev-parse --abbrev-ref HEAD) --no-verify fi - - - name: Docker meta + - name: Docker meta id: meta if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} uses: docker/metadata-action@v5 @@ -73,31 +70,26 @@ jobs: tags: | ${{ env.TAG_NAME }} latest - - - name: Set up QEMU + - name: Set up QEMU uses: docker/setup-qemu-action@v3 if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} - - - name: Set up Docker Buildx + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} - - - name: Login to GitHub Container Registry + - name: Login to GitHub Container Registry uses: docker/login-action@v3 if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Login to DockerHub + - name: Login to DockerHub uses: docker/login-action@v3 if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push + - name: Build and push if: ${{ (steps.should_run.outputs.should_run != 'false') && (github.event_name != 'workflow_dispatch' || (github.event_name == 'workflow_dispatch' && (contains(github.event.inputs.message, '[main]'))) )}} uses: docker/build-push-action@v5 with: -- cgit v1.2.3-70-g09d2