-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6c2d8f
commit eba89f2
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ jobs: | |
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write # Required for using GitHub Actions cache | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
|
@@ -24,6 +25,17 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Cache Docker layers | ||
uses: actions/cache@v3 | ||
with: | ||
path: /tmp/.buildx-cache | ||
key: ${{ runner.os }}-docker-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-docker- | ||
- name: Build and push Docker image (latest tag) | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -33,3 +45,5 @@ jobs: | |
tags: ghcr.io/${{ github.repository }}:latest | ||
labels: | | ||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |