Skip to content

feat(queries.GetProfile): use a new if block to add condition to get … #29

feat(queries.GetProfile): use a new if block to add condition to get …

feat(queries.GetProfile): use a new if block to add condition to get … #29

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-22.04
env:
tag: ${{ secrets.CI_REGISTRY }}/geekpie/coursebench-backend:latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ secrets.CI_REGISTRY }}
username: ${{ secrets.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_PASSWORD }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag $tag
- name: Push the Docker image1
if: github.ref == 'refs/heads/master'
run: docker push $tag