Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from prql/dockerhub
Browse files Browse the repository at this point in the history
Adds GH action for pushing to ghcr.io
  • Loading branch information
Tobias Brandt authored Oct 17, 2022
2 parents 97dda68 + ea2b75c commit 8e090ae
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,34 @@ jobs:
command: publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

publish-gh-package:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@4
with:
images: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:{{ inputs.tag_name }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.output.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# pq Changelog

## 0.0.8 - 2022-10-1&

* Added Github action for ghcr.io packages

## 0.0.7 - 2022-10-17

* Updated repo links to point to prql organisation.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repository = "https://github.com/prql/prql-query"
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.64.0"
version = "0.0.7"
version = "0.0.8"

[[bin]]
name = "pq"
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ dowloaded from [Releases](https://github.com/prql/prql-query/releases/)

### Run as a container image (Docker)

git clone https://github.com/prql/prql-query.git
cd prql-query
docker build -t pq .
alias pq="docker run --rm -it -v $(pwd):/data -w /data -u $(id -u):$(id -g) pq"
docker pull ghcr.io/prql/prql-query:v0.0.8
alias pq="docker run --rm -it -v $(pwd):/data -w /data -u $(id -u):$(id -g) ghcr.io.prql/prql-query:v0.0.8"
pq --help

### Via Rust toolchain (Cargo)
Expand Down

0 comments on commit 8e090ae

Please sign in to comment.