Skip to content

cardtrader/sealed: Decouple merged SLD products for foil/nonfoil vari… #136

cardtrader/sealed: Decouple merged SLD products for foil/nonfoil vari…

cardtrader/sealed: Decouple merged SLD products for foil/nonfoil vari… #136

Workflow file for this run

name: Bantool CI/CD
on:
push:
branches:
- 'master'
env:
IMAGE: 'strudelboogie'
REGISTRY_HOSTNAME: 'gcr.io'
PROJECT_ID: '${{ secrets.GCP_PROJECT_ID }}'
jobs:
build:
name: 'build and push'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCR_KEY }}'
- name: 'Set up Google Cloud SDK'
uses: 'google-github-actions/[email protected]'
with:
project_id: '${{ env.PROJECT_ID }}'
service_account_key: '${{ secrets.GCR_KEY }}'
- name: 'Configure Docker to use gcloud command-line tool'
run: 'gcloud auth configure-docker'
- name: 'build/push image'
run: |
docker build -t $REGISTRY_HOSTNAME/$PROJECT_ID/$IMAGE:$GITHUB_SHA .
docker push $REGISTRY_HOSTNAME/$PROJECT_ID/$IMAGE:$GITHUB_SHA
docker tag $REGISTRY_HOSTNAME/$PROJECT_ID/$IMAGE:$GITHUB_SHA $REGISTRY_HOSTNAME/$PROJECT_ID/$IMAGE:latest
docker push $REGISTRY_HOSTNAME/$PROJECT_ID/$IMAGE:latest