orgbook-service-build-and-push #4
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: orgbook-service-build-and-push | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- "/cllc-interfaces/Dynamics-Autorest/**" | |
- "/orgbook-service/**" | |
- ".github/workflows/cd-orgbook-service.yml" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log into registry | |
run: echo "${{ secrets.OCP4_PASSWORD }}" | docker login ${{ secrets.OCP4_REGISTRY }}/${{ secrets.OCP4_NAMESPACE }} -u ${{ secrets.OCP4_USERNAME }} --password-stdin | |
- name: Build image | |
run: docker build . --tag ${{ secrets.OCP4_REGISTRY }}/${{ secrets.OCP4_NAMESPACE }}/orgbook-service:dev | |
- name: Push image | |
run: docker push ${{ secrets.OCP4_REGISTRY }}/${{ secrets.OCP4_NAMESPACE }}/orgbook-service:dev |