Skip to content

fixed run statements #2

fixed run statements

fixed run statements #2

Workflow file for this run

name: Master branch CI/CD
on:
push:
jobs:
build-and-push-container:
runs-on: ubuntu-latest
steps:
# checkout the repo to $GITHUB_WORKSPACE
- uses: actions/checkout@v3
# login to docker hub
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# login to github container registry
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# build and push the vocya api docker image to ghcr.io
- name: Build and Push Image to ghcr.io
run: ./gha/build-container.sh
env:
CI_REGISTRY: ghcr.io/hetorusnl/vocya-api
DOCKERFILE: api.Dockerfile
BRANCH_NAME: ${{ github.ref_name }}
# build and push the vocya api docker image to docker hub
- name: Build and Push Image to Dockerhub
run: ./gha/build-container.sh
env:
CI_REGISTRY: hetorusnl/vocya-api
DOCKERFILE: api.Dockerfile
BRANCH_NAME: ${{ github.ref_name }}
# build and push the vocya dashboard docker image to ghcr.io
- name: Build and Push Image to ghcr.io
run: ./gha/build-container.sh
env:
CI_REGISTRY: ghcr.io/hetorusnl/vocya-dashboard
DOCKERFILE: dashboard.Dockerfile
BRANCH_NAME: ${{ github.ref_name }}
# build and push the vocya dashboard docker image to docker hub
- name: Build and Push Image to Dockerhub
run: ./gha/build-container.sh
env:
CI_REGISTRY: hetorusnl/vocya-dashboard
DOCKERFILE: dashboard.Dockerfile
BRANCH_NAME: ${{ github.ref_name }}