[ci] Use manually cloned git repo as context

This commit is contained in:
Laura Hausmann 2024-07-01 00:50:53 +02:00
parent 3d4cacb6d6
commit 1ddcdbfe4b
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,8 @@ jobs:
permissions:
packages: write
steps:
- name: Clone repository
run: git clone ${{ github.event.repository.clone_url }} --branch=${{ github.ref_name }} --depth=1 /iceshrimp
- name: Install Docker Cli
run: |-
install -m 0755 -d /etc/apt/keyrings
@ -50,6 +52,7 @@ jobs:
- name: Build and push
uses: https://code.forgejo.org/docker/build-push-action@v5
with:
context: /iceshrimp
push: true
tags: iceshrimp.dev/${{ env.REPO }}:${{ github.ref_name }}
target: image-jit

View file

@ -54,6 +54,7 @@ jobs:
- name: Build and push
uses: https://code.forgejo.org/docker/build-push-action@v5
with:
context: /iceshrimp
push: true
tags: ${{ env.TAGS }}
target: image-aot