Merge branch 'mnacharov:main' into main #14
Workflow file for this run
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
name: Build Docker Image | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
jobs: | |
build-images: | |
runs-on: ubuntu-latest | |
outputs: | |
author-name: ${{ steps.author-name.outputs.author-name }} | |
author-email: ${{ steps.author-email.outputs.author-email }} | |
tag: ${{ steps.tag.outputs.tag }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Docker meta | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: europe-west4-docker.pkg.dev/iaas-383414/iaas/grafana-datasource-oauth-proxy | |
tags: | | |
type=ref,event=tag | |
type=sha,event=branch,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} | |
flavor: | | |
latest=false | |
- name: Login to GAR | |
uses: docker/[email protected] | |
with: | |
registry: europe-west4-docker.pkg.dev | |
username: _json_key | |
password: "${{ secrets.GOOGLE_ARTIFACTREGISTRY_CREDENTIALS }}" | |
- name: Build and push | |
uses: docker/[email protected] | |
with: | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |