removed yarn tag-related stuff, tag handling is performed in git and … #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: Branches and tags 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 | |
REF_NAME: ${{ github.ref_name }} | |
REF_TYPE: ${{ github.ref_type }} # 'branch' or 'tag' | |
# 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 | |
REF_NAME: ${{ github.ref_name }} | |
REF_TYPE: ${{ github.ref_type }} # 'branch' or 'tag' | |
# 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 | |
REF_NAME: ${{ github.ref_name }} | |
REF_TYPE: ${{ github.ref_type }} # 'branch' or 'tag' | |
# 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 | |
REF_NAME: ${{ github.ref_name }} | |
REF_TYPE: ${{ github.ref_type }} # 'branch' or 'tag' |