Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use gha cache #9

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/publish-tag-images.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish Docker tag images

on:
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
Expand All @@ -13,12 +13,12 @@ env:
jobs:
build-docker:
permissions:
contents: "read"
id-token: "write"
contents: 'read'
id-token: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ inputs.sha }}
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -27,9 +27,9 @@ jobs:
id: gcpauth
uses: google-github-actions/auth@v1
with:
create_credentials_file: "true"
workload_identity_provider: "projects/311968610280/locations/global/workloadIdentityPools/github/providers/github"
service_account: "[email protected]"
create_credentials_file: 'true'
workload_identity_provider: 'projects/311968610280/locations/global/workloadIdentityPools/github/providers/github'
service_account: '[email protected]'

- name: login
run: |-
Expand All @@ -40,7 +40,8 @@ jobs:
with:
context: .
file: ./Dockerfile
push: true
push: false
cache-from: type=gha
tags: |
${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}
${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_NAME }}:latest
Loading