Merge pull request #107 from AngeloDotNet/develop #17
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: Push GatewaySvc to DockerHub | |
on: | |
push: | |
branches: [ main ] | |
paths: [ 'src/GatewaySvc/GatewaySvc/**' ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Push images to DockerHub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.2.2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3.3.0 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3.7.1 | |
- name: Build and push Gateway | |
uses: docker/build-push-action@v6.9.0 | |
with: | |
context: . | |
file: ./src/GatewaySvc/GatewaySvc/Dockerfile | |
push: true | |
tags: ${{ secrets.DOCKER_USERNAME }}/gswca-gateway:latest |