Skip to content

Push api-gateway image to Docker Hub #1

Push api-gateway image to Docker Hub

Push api-gateway image to Docker Hub #1

Workflow file for this run

name: Push api-gateway image to Docker Hub
on:
push:
branches: ["main"]
paths:
- 'iStudy-services/api-gateway/**'
workflow_dispatch:
jobs:
push-docker-image:
runs-on: ubuntu-latest
steps:
- name: Get repository
uses: actions/checkout@v4
- name: Docker hub login
uses: docker/login-action@v3
with:
username: ${{ secrets.ISTUDY_DOCKER_USERNAME }}
password: ${{ secrets.ISTUDY_DOCKER_PASSWORD }}
- name: Build and push docker images
uses: docker/build-push-action@v6
with:
context: ./iStudy-services/api-gateway
file: ./iStudy-services/api-gateway/Dockerfile
push: true
tags: |
istudyweb/api-gateway:latest
istudyweb/api-gateway:v${{ github.run_number }}