Skip to content

inlcude gamestate and timestamp in whitelist table && update scripts #31

inlcude gamestate and timestamp in whitelist table && update scripts

inlcude gamestate and timestamp in whitelist table && update scripts #31

Workflow file for this run

name: gol2
on:
push:
tags:
- v*
branches:
- 'main'
- 'update-starknet'
workflow_dispatch:
env:
GAR: europe-west9-docker.pkg.dev
Project: gol2-indexer
GCP_Project_ID: ${{ startsWith(github.event.ref, 'refs/tags/v') && 'gol2-production' || 'gol2-development' }}
jobs:
Build:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.meta.outputs.version }}
environment:
name: ${{ startsWith(github.event.ref, 'refs/tags/v') && 'production' || 'development' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.GAR }}/${{ env.GCP_Project_ID }}/${{ env.Project }}/${{ github.head_ref && 'feature' || startsWith(github.event.ref, 'refs/tags/v') && github.event.repository.default_branch || github.ref_name }}
flavor: latest=false
tags: |
type=sha,event=branch
type=ref,suffix=-{{sha}},event=pr
type=ref,event=tag
- uses: 'google-github-actions/auth@v2'
id: auth
with:
token_format: access_token
project_id: ${{ env.Project }}
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'
- name: Login to GAR
uses: docker/login-action@v3
with:
registry: ${{ env.GAR }}
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 }}