Skip to content

Commit

Permalink
cache images
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed May 10, 2024
1 parent d85c44b commit 9fd30b7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
imagename:
- php-fpm
Expand All @@ -33,6 +34,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: phpimages
path: /tmp

- name: Load image
run: |
docker load --input /tmp/phpimages.tar
docker image ls -a
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down Expand Up @@ -64,3 +76,10 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=docker,dest=/tmp/phpimages.tar

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: phpimages
path: /tmp/phpimages.tar

0 comments on commit 9fd30b7

Please sign in to comment.