diff --git a/.github/workflows/_deploy.yml b/.github/workflows/_deploy.yml index 9a45483..ee2e7a6 100644 --- a/.github/workflows/_deploy.yml +++ b/.github/workflows/_deploy.yml @@ -4,38 +4,10 @@ on: workflow_call: jobs: - build-and-push-image: - runs-on: ubuntu-latest + build-push-image: + uses: beeldengeluid/gha-workflows/.github/workflows/build-push-image.yml@7f728e024f68a2d2a6a345906a3abba25b227513 + secrets: inherit permissions: contents: read packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Log in to the Container registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: ghcr.io/${{ github.repository }} - tags: | - type=raw,value=edge,enable={{is_default_branch}} - type=sha - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - labels: ${{ steps.meta.outputs.labels }} - tags: ${{ steps.meta.outputs.tags }} - push: true - cache-from: type=gha - cache-to: type=gha,mode=max + id-token: write \ No newline at end of file