version = "1.11.0" (#829) #9
Workflow file for this run
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: Build and Push to GAR - Release | |
on: | |
push: | |
tags: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- id: 'auth' | |
uses: google-github-actions/auth@v2 | |
with: | |
project_id: "vorvan" | |
credentials_json: "${{ secrets.GAR_PUSH_CREDENTIALS }}" | |
- name: Configure Google Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: Configure Docker Client | |
run: |- | |
gcloud auth configure-docker ${{ secrets.GAR_REPOSITORY }} --quiet #authenticate to gar | |
- name: Clean Docker images | |
run: |- | |
echo "Available storage before cleaning:" | |
df -h | |
docker system prune --all --force | |
echo "Available storage:" | |
df -h | |
echo "Removing dotnet" | |
sudo rm -rf /usr/share/dotnet | |
echo "Available storage:" | |
df -h | |
- name: Docker Build Image | |
run: |- | |
docker build -t ${{ secrets.GAR_IMAGE_PATH }}:${{ github.ref_name }} . --quiet | |
- name: Push to GAR | |
run: |- | |
docker push ${{ secrets.GAR_IMAGE_PATH }}:${{ github.ref_name }} --quiet |