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

Commit 8e090ae

Browse files
author
Tobias Brandt
authored
Merge pull request #6 from prql/dockerhub
Adds GH action for pushing to ghcr.io
2 parents 97dda68 + ea2b75c commit 8e090ae

File tree

4 files changed

+38
-5
lines changed

4 files changed

+38
-5
lines changed

.github/workflows/release.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,34 @@ jobs:
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 }}

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repository = "https://github.com/prql/prql-query"
55
license = "MIT OR Apache-2.0"
66
edition = "2021"
77
rust-version = "1.64.0"
8-
version = "0.0.7"
8+
version = "0.0.8"
99

1010
[[bin]]
1111
name = "pq"

README.md

+2-4
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)