sqlx: add devcontainer feature
Some checks failed
Publish devcontainer stuff / publish (push) Failing after 18s
Some checks failed
Publish devcontainer stuff / publish (push) Failing after 18s
This commit is contained in:
parent
928c8abe79
commit
3cc2552d71
30
.github/workflows/devcontainer.yml
vendored
Normal file
30
.github/workflows/devcontainer.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Publish devcontainer stuff
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "main"
|
||||||
|
paths:
|
||||||
|
- "devcontainer/**"
|
||||||
|
- ".github/workflows/devcontainer.yml"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log into Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.REGISTRY }}
|
||||||
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Publish features
|
||||||
|
uses: devcontainers/action@v1
|
||||||
|
with:
|
||||||
|
publish-features: "true"
|
||||||
|
base-path-to-features: "./devcontainer/feature"
|
||||||
|
oci-registry: ${{ vars.REGISTRY }}
|
7
devcontainer/feature/sqlx/devcontainer-feature.json
Normal file
7
devcontainer/feature/sqlx/devcontainer-feature.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"id": "sqlx",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"name": "SQLx",
|
||||||
|
"description": "Add the SQLx-cli",
|
||||||
|
"documentationURL": "https://github.com/launchbadge/sqlx"
|
||||||
|
}
|
4
devcontainer/feature/sqlx/install.sh
Executable file
4
devcontainer/feature/sqlx/install.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
curl -sOL https://github.com/cargo-bins/cargo-quickinstall/releases/download/sqlx-cli-0.7.3-x86_64-unknown-linux-gnu/sqlx-cli-0.7.3-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
tar -xzf sqlx-cli-0.7.3-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
cp sqlx /usr/local/bin/
|
||||||
|
rm sqlx cargo-sqlx sqlx-cli-0.6.3-x86_64-unknown-linux-gnu.tar.gz
|
Loading…
Reference in New Issue
Block a user