add inbound-agent #3
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 Images | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
jobs: | ||
build-and-push-jenkins: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./jenkins | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build molecule image | ||
working-directory: ${{working-directory}} | ||
Check failure on line 16 in .github/workflows/image-build.yml
|
||
run: docker-compose build molecule | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | ||
- name: Push docker image | ||
working-directory: ${{working-directory}} | ||
run: docker-compose push | ||
build-and-push-inbound-agent: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./inbound-agent | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build molecule image | ||
working-directory: ${{working-directory}} | ||
run: docker-compose build molecule | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} | ||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} | ||
- name: Push docker image | ||
working-directory: ${{working-directory}} | ||
run: docker-compose push |