This repository was archived by the owner on Nov 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-5
lines changed
Expand file tree Collapse file tree 4 files changed +38
-5
lines changed Original file line number Diff line number Diff line change 5959 command : publish
6060 env :
6161 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
62+
63+ publish-gh-package :
64+ runs-on : ubuntu-latest
65+ permissions :
66+ contents : read
67+ packages : write
68+
69+ steps :
70+ - name : Checkout repository
71+ uses : actions/checkout@v3
72+
73+ - name : Log in to the Container registry
74+ uses : docker/login-action@v2
75+ with :
76+ registry : ghcr.io
77+ username : ${{ github.repository_owner }}
78+ password : ${{ secrets.GITHUB_TOKEN }}
79+
80+ - name : Extract metadata (tags, labels) for Docker
81+ id : meta
82+ uses : docker/metadata-action@4
83+ with :
84+ images : ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:{{ inputs.tag_name }}
85+
86+ - name : Build and push Docker image
87+ uses : docker/build-push-action@v3
88+ with :
89+ context : .
90+ push : true
91+ tags : ${{ steps.meta.output.tags }}
92+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 11# pq Changelog
22
3+ ## 0.0.8 - 2022-10-1&
4+
5+ * Added Github action for ghcr.io packages
6+
37## 0.0.7 - 2022-10-17
48
59* Updated repo links to point to prql organisation.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ repository = "https://github.com/prql/prql-query"
55license = " MIT OR Apache-2.0"
66edition = " 2021"
77rust-version = " 1.64.0"
8- version = " 0.0.7 "
8+ version = " 0.0.8 "
99
1010[[bin ]]
1111name = " pq"
Original file line number Diff line number Diff line change @@ -56,10 +56,8 @@ dowloaded from [Releases](https://github.com/prql/prql-query/releases/)
5656
5757### Run as a container image (Docker)
5858
59- git clone https://github.com/prql/prql-query.git
60- cd prql-query
61- docker build -t pq .
62- alias pq="docker run --rm -it -v $(pwd):/data -w /data -u $(id -u):$(id -g) pq"
59+ docker pull ghcr.io/prql/prql-query:v0.0.8
60+ alias pq="docker run --rm -it -v $(pwd):/data -w /data -u $(id -u):$(id -g) ghcr.io.prql/prql-query:v0.0.8"
6361 pq --help
6462
6563### Via Rust toolchain (Cargo)
You can’t perform that action at this time.
0 commit comments