From aafd083218d64e84ff9fbf001bd8363212cb0a47 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Sat, 27 Apr 2024 20:32:41 +0200 Subject: [PATCH] add shipit action --- .forgejo/workflows/docker.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.forgejo/workflows/docker.yaml b/.forgejo/workflows/docker.yaml index 8f2de41..a17ef89 100644 --- a/.forgejo/workflows/docker.yaml +++ b/.forgejo/workflows/docker.yaml @@ -8,6 +8,7 @@ jobs: runs-on: docker steps: - uses: actions/checkout@v4 + - name: Build latest uses: https://codeberg.org/umglurf/kaniko-action@main with: @@ -19,6 +20,7 @@ jobs: ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} push: "true" if: github.ref == 'refs/heads/master' + - name: Build ref uses: https://codeberg.org/umglurf/kaniko-action@main with: @@ -30,3 +32,10 @@ jobs: ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} push: "true" if: github.ref != 'refs/heads/master' + + - name: Deploy via shipit + uses: https://github.com/Hamcha/shipit@main + with: + provider: ${{ secrets.SHIPIT_PROVIDER }} + changes: '[{"templater":"yaml","file":"docker-compose.yml","changes":{"services.srht-mirror.image":"git.fromouter.space/hamcha/sourcehut-mirror-bridge:${{ github.sha }}"}}]' + branch: master