1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/sourcehut-mirror-bridge synced 2024-11-21 21:22:20 +00:00

add shipit action
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 2m15s

This commit is contained in:
Ash Keel 2024-04-27 20:32:41 +02:00
parent 4f0035629d
commit aafd083218
No known key found for this signature in database
GPG key ID: 53A9E9A6035DD109

View file

@ -8,6 +8,7 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build latest - name: Build latest
uses: https://codeberg.org/umglurf/kaniko-action@main uses: https://codeberg.org/umglurf/kaniko-action@main
with: with:
@ -19,6 +20,7 @@ jobs:
${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
push: "true" push: "true"
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
- name: Build ref - name: Build ref
uses: https://codeberg.org/umglurf/kaniko-action@main uses: https://codeberg.org/umglurf/kaniko-action@main
with: with:
@ -30,3 +32,10 @@ jobs:
${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
push: "true" push: "true"
if: github.ref != 'refs/heads/master' 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