Skip to content

Commit

Permalink
Spcefiy path for docker on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kuzminskyi committed Jul 20, 2024
1 parent 6594171 commit cfb22ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install --accept-license
sudo hdiutil detach /Volumes/Docker
echo "/Applications/Docker.app/Contents/Resources/bin" >> $GITHUB_PATH
# - name: "Setup tmate session"
# uses: "mxschmitt/action-tmate@v3"
Expand All @@ -40,15 +41,11 @@ jobs:

- name: "Log in to Docker Hub"
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
env:
PATH: "${{env.PATH}}:/Applications/Docker.app/Contents/Resources/bin"
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: "Build and push the image"
env:
PATH: "${{env.PATH}}:/Applications/Docker.app/Contents/Resources/bin"
run: |
ARCH=$(uname -m)
docker build -t twindb/omnibus-ubuntu:${{ steps.extract_branch.outputs.branch }}-${ARCH} .
Expand Down

0 comments on commit cfb22ec

Please sign in to comment.