Updates to store new items to existing NFT collections #348
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: deploy | |
on: | |
push: | |
branches: [ main, next ] | |
env: | |
GKE_CLUSTER: sltech-briq-k8s-cluster | |
GKE_ZONE: europe-west3-c | |
jobs: | |
deploy: | |
name: "Deploy to production" | |
environment: production | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
# Setup gcloud CLI | |
- uses: google-github-actions/setup-gcloud@v1 | |
with: | |
project_id: ${{ secrets.GCP_PROJECT_ID }} | |
# Configure Docker to use the gcloud command-line tool as a credential helper for authentication | |
- run: |- | |
gcloud auth configure-docker europe-west3-docker.pkg.dev | |
# Get the GKE credentials | |
- uses: google-github-actions/get-gke-credentials@main | |
with: | |
cluster_name: ${{ env.GKE_CLUSTER }} | |
location: ${{ env.GKE_ZONE }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- run: npm ci --include=dev | |
- name: Install ytt | |
run: |- | |
# Taken from install script. | |
binary_type=linux-amd64 | |
ytt_version=v0.37.0 | |
ytt_checksum=1aad12386f6bae1a78197acdc7ec9e60c441f82c4ca944df8d3c78625750fe59 | |
wget -nv -O- https://github.com/vmware-tanzu/carvel-ytt/releases/download/${ytt_version}/ytt-${binary_type} > ytt | |
echo "${ytt_checksum} ytt" | shasum -c - | |
chmod +x ytt | |
sudo ln -s "$(pwd)/ytt" /usr/local/bin/ytt | |
ytt --version | |
- name: Deploy | |
run: |- | |
K8S_ENV=prod infra/deploy.sh |