Skip to content

Commit

Permalink
chore: pushed images to registry so they are built only once
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitienda committed Apr 30, 2024
1 parent a5164bb commit fac1e81
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-run-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ jobs:
]
steps:
- uses: actions/checkout@v4
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build Docker image
run: docker build -t ${{ matrix.service }} ${{ matrix.service }}
run: |
docker build -t ${{ matrix.service }} ${{ matrix.service }} \
--tag kadai/${{ matrix.service }}:${GITHUB_SHA}
- name: Push Docker image
run: |
docker push kadai/${{ matrix.service }}:${GITHUB_SHA}
api:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit fac1e81

Please sign in to comment.