Skip to content

build: change install to package #14

build: change install to package

build: change install to package #14

name: Docker Publish
on:
push:
branches: [ "master" ]
paths-ignore:
- 'database/**'
- 'documentation/**'
- 'README.md'
- '.insomnium'
jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service: [ eureka-service, api-gateway, user-service, auth-service, inventory-service, reviews-service, order-service, notification-service ]
platforms: [ linux/arm64, linux/amd64 ]
steps:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: 8160202
password: ${{ secrets.DOCKER_HUB_PW }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:${{ matrix.service }}"
push: true
tags: 8160202/${{ matrix.service }}:latest
platforms: ${{ matrix.platforms }}