Skip to content

Try to fix entrypoint #8

Try to fix entrypoint

Try to fix entrypoint #8

Workflow file for this run

name: CD
on:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@v3'
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: isachivka/gpt
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v1
with:
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS }}"
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v1
- name: Print image tags into PR
run: |
gcloud compute instances update-container gpt-tg \
--zone europe-central2-a \
--container-image=isachivka/gpt:master