fix(docker-build-and-push): add output to build image #13
Workflow file for this run
This file contains hidden or 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: Test Build and Push Docker Image | |
| on: | |
| pull_request: | |
| paths: | |
| - "actions/build-docker/**" | |
| - "actions/push-docker/**" | |
| jobs: | |
| test-build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Test Login to Artifactory Action | |
| uses: ./actions/artifactory-login | |
| with: | |
| registry: ${{ secrets.ACR_URL }} | |
| username: ${{ secrets.ACR_PUSH_USER }} | |
| password: ${{ secrets.ACR_PUSH_TOKEN }} | |
| - name: Test Build Docker Image | |
| id: build_docker_image | |
| uses: ./actions/build-docker | |
| with: | |
| context: ./test | |
| domain: infra | |
| registry: ${{ secrets.ACR_URL }} | |
| - name: Test Push Docker Image | |
| uses: ./actions/push-docker | |
| with: | |
| image_name: ${{ steps.build_docker_image.outputs.docker_image_name }} | |
| image_tag: ${{ steps.build_docker_image.outputs.docker_image_tag }} |