sqlx: add devcontainer feature
Some checks failed
Publish devcontainer stuff / publish (push) Failing after 18s

This commit is contained in:
Adrian Wannenmacher 2023-12-12 02:02:17 +01:00
parent 928c8abe79
commit 3cc2552d71
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5
3 changed files with 41 additions and 0 deletions

30
.github/workflows/devcontainer.yml vendored Normal file
View 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 }}

View File

@ -0,0 +1,7 @@
{
"id": "sqlx",
"version": "0.1.0",
"name": "SQLx",
"description": "Add the SQLx-cli",
"documentationURL": "https://github.com/launchbadge/sqlx"
}

View 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