This commit is contained in:
parent
4e44cba3a3
commit
98b7848447
@ -24,5 +24,10 @@ jobs:
|
|||||||
- name: Build and push docker
|
- name: Build and push docker
|
||||||
run: |
|
run: |
|
||||||
docker build . -t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:latest -t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:1.74.${{steps.git.outputs.short_hash}} && \
|
docker build . -t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:latest -t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:1.74.${{steps.git.outputs.short_hash}} && \
|
||||||
|
docker build . -f Dockerfile.nodejs -t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust-nodejs:latest && \
|
||||||
|
-t git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust-nodejs:1.74.${{steps.git.outputs.short_hash}} && \
|
||||||
|
--build-arg BASE_IMAGE=git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:1.74.${{steps.git.outputs.short_hash}} &&\
|
||||||
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:1.74.${{steps.git.outputs.short_hash}} && \
|
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:1.74.${{steps.git.outputs.short_hash}} && \
|
||||||
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:latest
|
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust:latest && \
|
||||||
|
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust-nodejs:1.74.${{steps.git.outputs.short_hash}} && \
|
||||||
|
docker push git.nanobyte.cz/$GITHUB_REPOSITORY_OWNER/nano-rust-nodejs:latest
|
||||||
|
5
Dockerfile.nodejs
Normal file
5
Dockerfile.nodejs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM git.nanobyte.cz/nanobyte/nano-rust:latest
|
||||||
|
RUN apt-get install -y ca-certificates curl gnupg
|
||||||
|
RUN mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install -y nodejs && rm -rf /var/cache/apt*
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export CARGO_REGISTRIES_GITEA_NANOBYTE_CREDENTIAL_PROVIDER=cargo:token
|
export CARGO_REGISTRIES_GITEA_NANOBYTE_CREDENTIAL_PROVIDER=cargo:token
|
||||||
export CARGO_REGISTRIES_GITEA_NANOBYTE_TOKEN=$1
|
export CARGO_REGISTRIES_GITEA_NANOBYTE_TOKEN="Bearer $1"
|
||||||
export CARGO_REGISTRIES_GITEA_NANOBYTE_INDEX=sparse+https://git.nanobyte.cz/api/packages/nanobyte/cargo/
|
export CARGO_REGISTRIES_GITEA_NANOBYTE_INDEX=sparse+https://git.nanobyte.cz/api/packages/nanobyte/cargo/
|
||||||
|
|
||||||
export CARGO_REGISTRIES_GITEA_OVLACH_CREDENTIAL_PROVIDER=cargo:token
|
export CARGO_REGISTRIES_GITEA_OVLACH_CREDENTIAL_PROVIDER=cargo:token
|
||||||
export CARGO_REGISTRIES_GITEA_OVLACH_TOKEN=$1
|
export CARGO_REGISTRIES_GITEA_OVLACH_TOKEN="Bearer $1"
|
||||||
export CARGO_REGISTRIES_GITEA_OVLACH_INDEX=sparse+https://git.nanobyte.cz/api/packages/ovlach/cargo/
|
export CARGO_REGISTRIES_GITEA_OVLACH_INDEX=sparse+https://git.nanobyte.cz/api/packages/ovlach/cargo/
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
Loading…
Reference in New Issue
Block a user