Skip to content

Add Java 25 support (#936) #5

Add Java 25 support (#936)

Add Java 25 support (#936) #5

name: Release Docker
on:
push:
branches:
- main
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
shell: bash
run: |
set -euo pipefail
tags=(--tag sourcegraph/scip-java:latest-snapshot)
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
version="${GITHUB_REF_NAME#v}"
tags=(
--tag sourcegraph/scip-java:latest
--tag "sourcegraph/scip-java:${version}"
)
fi
docker buildx build --push "${tags[@]}" .