Skip to content

Commit

Permalink
ci: Fix to set context
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Sep 27, 2023
1 parent 5f1785b commit b425530
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/staging-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,15 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- name: Get context directory of Dockerfile
id: dockerfile-context
run: |
echo "context=$(dirname '${{ matrix.dockerfile }}')" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
file: ${{ matrix.dockerfile }}
context: ${{ steps.dockerfile-context.outputs.context }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
Expand Down

0 comments on commit b425530

Please sign in to comment.