Skip to content

Commit

Permalink
ci(EI-540): build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
mnacharov committed Jul 1, 2024
1 parent 94b96bf commit b5e1999
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build and Deploy

on:
workflow_dispatch:
push:
branches:
- main
- EI-540

env:
REGISTRY: europe-west4-docker.pkg.dev

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: p2p-ssv-cluster-manager/main
tags: |
type=sha,priority=300
# - name: Build Image
# id: build-image
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ steps.meta.outputs.tags }}
# context: ./${{ matrix.path }}
# tags: ${{ matrix.tag }}
# build-args: ${{ matrix.args }}
# containerfiles: |
# ./${{ matrix.path }}/${{ matrix.file }}
#
#
- uses: 'google-github-actions/auth@v2'
with:
project_id: iaas-383414
workload_identity_provider: projects/802839937832/locations/global/workloadIdentityPools/iaas-pipelines-iaas/providers/github-p2p-org-repos

# - name: Set up Cloud SDK
# uses: google-github-actions/setup-gcloud@v2
#
# - name: Configure Docker to use the gcloud command-line tool as a credential helper
# run: gcloud auth configure-docker europe-west4-docker.pkg.dev --quiet
#
# - name: Build & Push
# uses: docker/build-push-action@v5
# with:
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
#

0 comments on commit b5e1999

Please sign in to comment.