From 9233bd9b84839beaba3d705fed65be5144b01ffb Mon Sep 17 00:00:00 2001 From: Andrey Vasnetsov Date: Tue, 6 Apr 2021 20:06:51 +0200 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000000..41e0e64da0 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,26 @@ +name: Docker Image CI + +on: + push: + # Pattern matched against refs/tags + tags: + - '*' # Push events to every tag not containing / + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Get current tag + id: vars + run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} + - name: Build the Docker image + env: + RELEASE_VERSION: ${{ steps.vars.outputs.tag }} + run: | + docker login https://docker.pkg.github.com -u qdrant --password ${{ secrets.GITHUB_TOKEN }} + docker build . --file Dockerfile --tag "docker.pkg.github.com/qdrant/qdrant/qdrant:$RELEASE_VERSION" + docker push "docker.pkg.github.com/qdrant/qdrant/qdrant:$RELEASE_VERSION"