Skip to content

Merge pull request #334 from skgndi12/feature/issue-333/introduce-cd-… #1

Merge pull request #334 from skgndi12/feature/issue-333/introduce-cd-…

Merge pull request #334 from skgndi12/feature/issue-333/introduce-cd-… #1

Workflow file for this run

name: Build and push images
on:
push:
tags:
- "v*.*.*"
jobs:
build-api:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
api
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: mistercinephile/mrc-api:${{ github.ref_name }}
context: api
build-ui:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
.github
ui
fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: mistercinephile/mrc-ui:${{ github.ref_name }}
context: ui