Skip to content

README: Add docker compose section #3

README: Add docker compose section

README: Add docker compose section #3

Workflow file for this run

name: Build Docker images
on:
push:
tags:
- '*' # Push events to matching tags
jobs:
docker-api-cart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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:
context: ./cart-service/
push: true
tags: |
alphayax/microservice-demo-cart-service:latest
alphayax/microservice-demo-cart-service:${GITHUB_REF_NAME}
docker-api-article:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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:
context: ./article-service/
push: true
tags: |
alphayax/microservice-demo-article-service:latest
alphayax/microservice-demo-article-service:${GITHUB_REF_NAME}
docker-front-user:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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:
context: ./front-user/
push: true
tags: |
alphayax/microservice-demo-frontend-user:latest
alphayax/microservice-demo-frontend-user:${GITHUB_REF_NAME}
docker-front-admin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- 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:
context: ./front-admin/
push: true
tags: |
alphayax/microservice-demo-frontend-admin:latest
alphayax/microservice-demo-frontend-admin:${GITHUB_REF_NAME}