Skip to content

Commit

Permalink
ci: deprecate using buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed May 23, 2024
1 parent c90efa3 commit 8b69589
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: crazy-max/ghaction-github-runtime@v3.0.0
- uses: docker/setup-buildx-action@v3.3.0
- id: build
run: |
docker buildx build --cache-from type=gha,scope=hariko --cache-to type=gha,scope=hariko,mode=max -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko" --push .
docker build --cache-from type=gha,scope=hariko --cache-to type=gha,scope=hariko,mode=max -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko" .
docker push "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-hariko"
echo "digest=$(docker image ls --format '{{.Digest}}' | head -n1)" > $GITHUB_OUTPUT
working-directory: hariko
env:
Expand All @@ -89,7 +89,6 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: Homebrew/actions/setup-homebrew@master
- uses: crazy-max/ghaction-github-runtime@v3.0.0
- uses: docker/setup-buildx-action@v3.3.0
- id: build
run: |
head=$(git rev-parse HEAD)
Expand All @@ -101,7 +100,8 @@ jobs:
git checkout FETCH_HEAD
brew install jaq
jaq --in-place ".version += \"-$(git rev-parse --abbrev-ref HEAD).$(git rev-parse HEAD)\"" package.json
docker buildx build --cache-from type=gha,scope=misskey --cache-to type=gha,scope=misskey,mode=max -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey" --push .
docker build --cache-from type=gha,scope=misskey --cache-to type=gha,scope=misskey,mode=max -t "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey" .
docker push "ghcr.io/misskey-dev/0key.dev:$GITHUB_REF_NAME-misskey"
echo "digest=$(docker image ls --format '{{.Digest}}' | head -n1)" > $GITHUB_OUTPUT
working-directory: misskey
env:
Expand Down

0 comments on commit 8b69589

Please sign in to comment.