Skip to content

Commit

Permalink
Merge pull request #508 from FgForrest/master-backup-before-mvcc
Browse files Browse the repository at this point in the history
ci: attempt to deploy image per MAJOR version
  • Loading branch information
novoj authored Apr 15, 2024
2 parents 705c161 + f45fb9a commit 7aaece6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docker-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,24 @@ jobs:
username: ${{ vars.CI_REGISTRY_USER }}
password: ${{ secrets.CI_REGISTRY_PASSWORD }}

- name: Extract major version
id: major_version
run: echo "::set-output name=version::$(echo '${{ steps.release_version.outputs.version }}' | cut -d'.' -f1,2)"

- name: Build and push Docker image
env:
RELEASE_IMAGE: "evitadb:latest"
EVITA_JAR_NAME: evita-server.jar
MAJOR_VERSION: ${{ steps.major_version.outputs.version }}
uses: docker/build-push-action@v3
with:
context: ./docker
file: ./docker/Dockerfile
pull: true
push: true
tags: ${{ vars.CI_REGISTRY_USER }}/${{ env.RELEASE_IMAGE }}
tags: |
${{ vars.CI_REGISTRY_USER }}/${{ env.RELEASE_IMAGE }}
${{ vars.CI_REGISTRY_USER }}/evitadb:${{ env.MAJOR_VERSION }}
platforms: linux/amd64,linux/arm64/v8
build-args: |
EVITA_JAR_NAME=${{ env.EVITA_JAR_NAME }}
EVITA_JAR_NAME=${{ env.EVITA_JAR_NAME }}

0 comments on commit 7aaece6

Please sign in to comment.