Skip to content

Commit

Permalink
extend to use dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyriakos Akriotis committed Jul 8, 2024
1 parent 48a8cbd commit 9494981
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,26 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}


- name: Build and push
uses: docker/build-push-action@v5
with:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: true
tags: akyriako78/docs-next-preview:gh
tags: ${{ secrets.DOCKERHUB_USERNAME }}/docs-next-preview:latest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# push: true
# tags: akyriako78/docs-next-preview:0.0.1

# - name: Say Hi!
# env:
# TYPESENSE_PROTOCOL: ${{ vars.TYPESENSE_PROTOCOL }}
# TYPESENSE_HOST: ${{ vars.TYPESENSE_HOST }}
# TYPESENSE_PORT: ${{ vars.TYPESENSE_PORT }}
# TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
# run: |
# echo "Typesense target is $TYPESENSE_PROTOCOL://$TYPESENSE_HOST:$TYPESENSE_PORT"


0 comments on commit 9494981

Please sign in to comment.