Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Aug 31, 2024
1 parent 6ca8ea2 commit f15ae74
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/satis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
- name: Create composer.json
run: echo "{}" > composer.json

- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Get Date
id: get-date
run: echo "date=$(/bin/date -u "+%F")" >> $GITHUB_OUTPUT
Expand All @@ -42,7 +38,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
${{ steps.composer-cache.outputs.dir }}
~/.composer
${{ env.BUILD_DIR }}
key: ${{ runner.os }}-php-${{ steps.get-date.outputs.date }}
restore-keys: ${{ runner.os }}-php-
Expand All @@ -52,15 +48,16 @@ jobs:

- name: Docker build
run: |
export COMPOSER_HOME="$HOME/.composer"
docker run --rm --init \
--user $(id -u):$(id -g) \
--volume $(pwd):/build \
--volume "${{ steps.composer-cache.outputs.dir }}:/composer" \
--volume "${COMPOSER_HOME}:/composer" \
--volume "$SSH_AUTH_SOCK:/ssh-auth.sock" \
--volume /etc/passwd:/etc/passwd:ro \
--volume /etc/group:/etc/group:ro \
--env SSH_AUTH_SOCK=/ssh-auth.sock \
composer/satis build /build/satis.json /build/${{ env.BUILD_DIR }} --no-interaction
composer/satis -vvv build /build/satis.json /build/${{ env.BUILD_DIR }} --no-interaction
- name: Publish to GitHub pages
run: |
Expand Down

0 comments on commit f15ae74

Please sign in to comment.