Merge pull request #88 from AngeloDotNet/develop #15
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/[email protected] | |
- name: Login to Docker Hub | |
uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Build and push Gateway | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./src/GatewaySvc/GatewaySvc/Dockerfile | |
push: true | |
tags: ${{ secrets.DOCKER_USERNAME }}/gswca-gateway:latest |