Skip to content

Test login-to-gar action #119

Test login-to-gar action

Test login-to-gar action #119

name: Test login-to-gar action
on:
push:
branches:
- main
paths:
- "actions/login-to-gar/**"
- ".github/workflows/test-login-to-gar.yaml"
pull_request:
paths:
- "actions/login-to-gar/**"
- ".github/workflows/test-login-to-gar.yaml"
merge_group:
permissions:
contents: read
id-token: write
jobs:
test:
strategy:
matrix:
enviromnent:
- dev
- prod
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Test Login to GAR Action
id: test-login-to-gar
uses: ./actions/login-to-gar
with:
environment: ${{ matrix.enviromnent }}
registry: "us-docker.pkg.dev"