Merge pull request #21 from devgateway/OCNANDI-10-improve-dockerization #7
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: Docker Image CI | |
on: | |
push: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: docker/login-action@v1 | |
with: | |
registry: harbor.dgstg.org | |
username: ${{ secrets.HARBOR_USERNAME }} | |
password: ${{ secrets.HARBOR_PASSWORD }} | |
- uses: actions/checkout@v3 | |
- name: BuildAndPushDockerImages | |
run: | | |
docker build ./ --target prod -t harbor.dgstg.org/ocnandi/ocnandi-app:develop | |
docker push harbor.dgstg.org/ocnandi/ocnandi-app:develop | |
docker build ./nginx -t harbor.dgstg.org/ocnandi/ocnandi-web:develop | |
docker push harbor.dgstg.org/ocnandi/ocnandi-web:develop |