https://github.com/picahq/google-artifact-registry-action
A GitHub action that authenticates to Google Artifact Registry, builds a Docker image and pushes it to an Artifact Registry repository.
https://github.com/picahq/google-artifact-registry-action
Last synced: 2 months ago
JSON representation
A GitHub action that authenticates to Google Artifact Registry, builds a Docker image and pushes it to an Artifact Registry repository.
- Host: GitHub
- URL: https://github.com/picahq/google-artifact-registry-action
- Owner: picahq
- License: gpl-3.0
- Created: 2023-08-16T15:08:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T18:40:45.000Z (12 months ago)
- Last Synced: 2025-03-19T14:01:46.142Z (2 months ago)
- Homepage: https://picaos.com
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# google-artifact-registry-action
A GitHub action that authenticates to [Google Artifact Registry](https://cloud.google.com/artifact-registry), builds a Docker image and pushes it to an Artifact Registry repository.
## Usage
```yaml
jobs:
build:
runs-on: ubuntu-latest# permissions required by google-github-actions/auth@v1, a dependency of integration-os/google-artifact-registry-action@v2
permissions:
contents: read
id-token: writesteps:
- uses: actions/checkout@v3
- uses: integration-os/google-artifact-registry-action@v2
with:
image: us-docker.pkg.dev/integrationos/docker-oss/my-service:v1
service_account: [email protected]
workload_identity_provider: projects/356173785332/locations/global/workloadIdentityPools/github-actions/providers/github-actions
```### Inputs
| Input | Required? | Default | Description |
| ------ | --------- | ------- |------------ |
| `image` | yes | | Full Docker image name to build and push, including the registry, repository and tag |
| `service_account` | yes | | GCP service account used to authenticate to Google Cloud |
| `workload_identity_provider` | yes | | GCP workload identity provider used to authenticate to Google Cloud |
| `context` | no | [Git context](https://github.com/docker/build-push-action/tree/master#git-context)| Build's context is the set of files located in the specified PATH or URL |
| `file` | no | `Dockerfile` | Path to the `Dockerfile` to build |
| `build-args` | no | `""` | The `build-args` to pass to `docker/build-push-action` |
| `secrets` | no | `""` | The `secrets` to pass to `docker/build-push-action` |