Docker Image Name
Docker Image Tag
Docker Context of build process
Google Artifact Repository Hostname
Google Cloud Project ID.
Google Cloud Service Account Key (json format).
Define if image must be tagged as latest version
-
tag v1.0.0 and latest
uses: par-tec/docker-push-gar-image@latest with: image_name: myimage image_tag: v1.0.0 docker_context: ./ gar_hostname: europe-west4-docker.pkg.dev gar_project: ${{ secrets.GCLOUD_PROJECT_ID }} gar_service_account: ${{ secrets.GCLOUD_SERVICE_KEY }} tag_latest_version: true
-
tag latest
uses: par-tec/docker-push-gar-image@latest with: image_name: myimage image_tag: latest gar_hostname: europe-west4-docker.pkg.dev gar_project: ${{ secrets.GCLOUD_PROJECT_ID }} gar_service_account: ${{ secrets.GCLOUD_SERVICE_KEY }}