From 842bca0cbb68924e8a9c529c72ca4dc50db573ab Mon Sep 17 00:00:00 2001 From: Julian Ortel Date: Mon, 4 Sep 2023 09:53:13 +0200 Subject: [PATCH] move deploy workflow in correct folder --- .github/{ => workflows}/deploy.yml | 72 +++++++++++++++--------------- 1 file changed, 36 insertions(+), 36 deletions(-) rename .github/{ => workflows}/deploy.yml (96%) diff --git a/.github/deploy.yml b/.github/workflows/deploy.yml similarity index 96% rename from .github/deploy.yml rename to .github/workflows/deploy.yml index 13d0b04..86cc2e9 100644 --- a/.github/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,36 +1,36 @@ -name: Deploy - -on: - push: - branches: - - main - -env: - SERVICE_NAME: sigconverter - IMAGE_NAME: sigconverter.io - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Google Cloud SDK - uses: google-github-actions/setup-gcloud@v0.2.1 - with: - project_id: ${{ secrets.PROJECT_ID }} - service_account_key: ${{ secrets.GCLOUD_AUTH }} - - - name: Configure Docker - run: gcloud auth configure-docker - - - name: Build Docker image - run: docker build -t ${{ env.IMAGE_NAME }} . - - - name: Push Docker image to Google Container Registry - run: gcloud builds submit --tag gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} - - - name: Deploy to Google Cloud Run - run: gcloud run deploy ${{ env.SERVICE_NAME }} --image gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} --platform managed +name: Deploy + +on: + push: + branches: + - main + +env: + SERVICE_NAME: sigconverter + IMAGE_NAME: sigconverter.io + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Google Cloud SDK + uses: google-github-actions/setup-gcloud@v0.2.1 + with: + project_id: ${{ secrets.PROJECT_ID }} + service_account_key: ${{ secrets.GCLOUD_AUTH }} + + - name: Configure Docker + run: gcloud auth configure-docker + + - name: Build Docker image + run: docker build -t ${{ env.IMAGE_NAME }} . + + - name: Push Docker image to Google Container Registry + run: gcloud builds submit --tag gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} + + - name: Deploy to Google Cloud Run + run: gcloud run deploy ${{ env.SERVICE_NAME }} --image gcr.io/${{ secrets.PROJECT_ID }}/${{ env.IMAGE_NAME }} --platform managed