Skip to content

Commit ea6e67b

Browse files
committed
ci package: cache Docker image
1 parent 76ba047 commit ea6e67b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/package.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,26 @@ jobs:
121121
rake version:update
122122
env:
123123
GROONGA_REPOSITORY: ../groonga
124+
- name: Login to GitHub Container registry
125+
uses: docker/login-action@v3
126+
with:
127+
registry: ghcr.io
128+
username: ${{ github.actor }}
129+
password: ${{ secrets.GITHUB_TOKEN }}
124130
- name: Build with docker
125131
run: |
126132
cd packages
133+
rake docker:pull || :
127134
rake ${TASK_NAMESPACE}:build
128135
env:
129136
GROONGA_REPOSITORY: ../groonga
137+
- name: Push the built Docker image
138+
continue-on-error: true
139+
run: |
140+
cd packages
141+
rake docker:push
142+
env:
143+
GROONGA_REPOSITORY: ../groonga
130144
- uses: actions/upload-artifact@v3
131145
with:
132146
name: packages-${{ matrix.id }}

0 commit comments

Comments
 (0)