Skip to content

Commit

Permalink
update to docker build and upload action v6
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-spike committed Aug 7, 2024
1 parent 13dfa5d commit 4df2a58
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/upload-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,59 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Checkout code
with:
fetch-depth: 1
fetch-tags: true

- name: Get latest Git tag
- name: Get release tag
id: get-tag
run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
run: |
if [ "${{ github.event_name }}" = "release" ]; then
echo "tag=${{ github.event.release.tag_name }}" >> $GITHUB_OUTPUT
else
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
fi
shell: bash

build-quote-search-preview:
build-push-quote-search-preview:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push quote search preview Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./.internal/Dockerfile-quote-search-preview
platforms: linux/amd64,linux/arm64
push: true
tags: aerospike/quote-search-example:preview

build-quote-search:
build-push-quote-search:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push quote search latest and tagged Docker image
uses: docker/build-push-action@v5
- name: Build and push quote search Docker image
uses: docker/build-push-action@v6
with:
context: ./quote-semantic-search
file: ./quote-semantic-search/Dockerfile-quote-search
Expand All @@ -67,22 +75,22 @@ jobs:
aerospike/quote-search-example:latest
aerospike/quote-search-example:${{ needs.setup.outputs.tag }}
build-prism-search:
build-push-prism-search:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push prism search latest and tagged Docker image
uses: docker/build-push-action@v5
- name: Build and push prism search Docker image
uses: docker/build-push-action@v6
with:
context: ./quote-semantic-search
file: ./quote-semantic-search/Dockerfile-prism
Expand Down

0 comments on commit 4df2a58

Please sign in to comment.