From eb89917ff47bce1f2fc3d3248b0bb68987c9cc2c Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Thu, 26 Oct 2023 09:37:18 +0200 Subject: [PATCH] add dependabot config, add github container push --- .github/dependabot.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/docker.yaml | 10 +++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yaml diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 00000000..41ffe7ea --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,26 @@ +version: 2 +updates: + + # github actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "alcohol" + + # npm dependencies + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "alcohol" + + # composer dependencies + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "weekly" + assignees: + - "alcohol" diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index fe7c2815..5179bc29 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -9,7 +9,7 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v3 - - run: docker build --pull --no-cache --tag composer/satis . + - run: docker build --pull --no-cache --tag composer/satis --tag ghcr.io/composer/satis . - if: github.ref == 'refs/heads/main' uses: docker/login-action@v2 with: @@ -17,3 +17,11 @@ jobs: password: ${{ secrets.DOCKERHUB_PASSWORD }} - if: github.ref == 'refs/heads/main' run: docker push composer/satis + - if: github.ref == 'refs/heads/main' + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - if: github.ref == 'refs/heads/main' + run: docker push ghcr.io/composer/satis