Skip to content

Commit

Permalink
Build the correct image (#308)
Browse files Browse the repository at this point in the history
Oops. #307 introduced the xmtpd-cli docker image but it actually ended
up being xmtpd.
Fix it.
  • Loading branch information
mkysel authored Dec 6, 2024
1 parent d1212c2 commit e3ac999
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-xmtpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,23 @@ jobs:
type=ref,event=tag
type=ref,event=pr
type=sha
- name: Set up Docker image file based on the matrix variable
id: set_dockerfile
run: |
if [[ "${{ matrix.image }}" == "xmtpd" ]]; then
echo "dockerfile=Dockerfile" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.image }}" == "xmtpd-cli" ]]; then
echo "dockerfile=Dockerfile-cli" >> $GITHUB_OUTPUT
else
echo "Unknown image: ${{ matrix.image }}"
exit 1
fi
- name: Build and push Docker image
uses: docker/build-push-action@v6
id: push
with:
context: .
file: ./dev/docker/Dockerfile
file: ./dev/docker/${{ steps.set_dockerfile.outputs.dockerfile }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit e3ac999

Please sign in to comment.