Skip to content

Commit cf6494d

Browse files
authored
Docker images with latest tag (#73)
* Deploy the latest tag using a newer version of the docker action * Use the correct tag name in all examples * Temporarily also build in PRs for testing
1 parent 09093ce commit cf6494d

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,28 @@ jobs:
4848
steps:
4949
- name: Check out the repo
5050
uses: actions/checkout@v2
51-
- name: Push to Docker Hub
52-
uses: docker/build-push-action@v1
51+
52+
- name: Docker meta
53+
id: docker_meta
54+
uses: crazy-max/ghaction-docker-meta@v1
55+
with:
56+
images: nbraun/dask-sql
57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v1
59+
- name: Set up Docker Buildx
60+
uses: docker/setup-buildx-action@v1
61+
- name: Login to DockerHub
62+
uses: docker/login-action@v1
5363
with:
5464
username: ${{ secrets.DOCKER_USERNAME }}
5565
password: ${{ secrets.DOCKER_PASSWORD }}
56-
repository: nbraun/dask-sql
57-
tag_with_ref: true
66+
- name: Build and push
67+
id: docker_build
68+
uses: docker/build-push-action@v2
69+
with:
70+
context: .
71+
file: ./Dockerfile
72+
platforms: linux/amd64,linux/arm64,linux/386
73+
push: ${{ github.event_name != 'pull_request' }}
74+
tags: ${{ steps.docker_meta.outputs.tags }}
75+
labels: ${{ steps.docker_meta.outputs.labels }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Read more in the [documentation](https://dask-sql.readthedocs.io/en/latest/).
2020

2121
You can try out `dask-sql` quickly by using the docker command
2222

23-
docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
23+
docker run --rm -it -p 8080:8080 nbraun/dask-sql
2424

2525
See information in the SQL server at the end of this page.
2626

@@ -162,7 +162,7 @@ You can test the sql presto server by running
162162

163163
or by using the created docker image
164164

165-
docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
165+
docker run --rm -it -p 8080:8080 nbraun/dask-sql
166166

167167
in one terminal. This will spin up a server on port 8080 (by default)
168168
that looks similar to a normal presto database to any presto client.

docs/pages/server.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ or by using the created docker image
2929

3030
.. code-block:: bash
3131
32-
docker run --rm -it -p 8080:8080 nbraun/dask-sql:0.1.2
32+
docker run --rm -it -p 8080:8080 nbraun/dask-sql
3333
3434
This will spin up a server on port 8080 (by default).
3535
The port and bind interfaces can be controlled with the ``--port`` and ``--host`` command line arguments (or options to :func:`dask_sql.run_server`).
@@ -113,7 +113,7 @@ To run a standalone SQL server in your ``dask`` cluster, follow these three step
113113

114114
.. code-block:: dockerfile
115115
116-
FROM nbraun/dask-sql:0.1.2
116+
FROM nbraun/dask-sql
117117
118118
COPY startup_script.py /opt/dask_sql/startup_script.py
119119

0 commit comments

Comments
 (0)