Remove certificate modification in Dockerfile, add new CI/CD for prod… #15
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: gol2 | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'update-starknet' | |
workflow_dispatch: | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
outputs: | |
tag: ${{ steps.meta.outputs.version }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: europe-west9-docker.pkg.dev/gol2-development/gol2-indexer/dev | |
flavor: latest=false | |
tags: | | |
type=ref,suffix=-{{sha}},event=branch | |
type=ref,suffix=-{{sha}},event=pr | |
- uses: 'google-github-actions/auth@v2' | |
id: auth | |
with: | |
token_format: access_token | |
project_id: 'gol2-development' | |
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' | |
- name: Login to GAR | |
uses: docker/login-action@v3 | |
with: | |
registry: europe-west9-docker.pkg.dev | |
username: oauth2accesstoken | |
password: ${{ steps.auth.outputs.access_token }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |