Skip to content

Commit

Permalink
ci package: cache Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 18, 2023
1 parent 76ba047 commit ea6e67b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,26 @@ jobs:
rake version:update
env:
GROONGA_REPOSITORY: ../groonga
- name: Login to GitHub Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build with docker
run: |
cd packages
rake docker:pull || :
rake ${TASK_NAMESPACE}:build
env:
GROONGA_REPOSITORY: ../groonga
- name: Push the built Docker image
continue-on-error: true
run: |
cd packages
rake docker:push
env:
GROONGA_REPOSITORY: ../groonga
- uses: actions/upload-artifact@v3
with:
name: packages-${{ matrix.id }}
Expand Down

0 comments on commit ea6e67b

Please sign in to comment.