chore: Update forgejo and drone hostnames.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
77f0b07538
commit
a243052c09
8 changed files with 114 additions and 115 deletions
206
.drone.yml
206
.drone.yml
|
@ -3,110 +3,110 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: retrieve build cache
|
- name: retrieve build cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: ACCESS_KEY_ID
|
from_secret: ACCESS_KEY_ID
|
||||||
AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: SECRET_ACCESS_KEY
|
from_secret: SECRET_ACCESS_KEY
|
||||||
AWS_PLUGIN_PATH_STYLE: true
|
AWS_PLUGIN_PATH_STYLE: true
|
||||||
settings:
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
endpoint:
|
endpoint:
|
||||||
from_secret: S3_ENDPOINT
|
from_secret: S3_ENDPOINT
|
||||||
bucket:
|
bucket:
|
||||||
from_secret: CACHE_BUCKET
|
from_secret: CACHE_BUCKET
|
||||||
region: us-east-1
|
region: us-east-1
|
||||||
path-style: true
|
path-style: true
|
||||||
mount: .docker-build-cache
|
mount: .docker-build-cache
|
||||||
|
|
||||||
- name: dev-container/base
|
- name: dev-container/base
|
||||||
image: thegeeklab/drone-docker-buildx:24
|
image: thegeeklab/drone-docker-buildx:24
|
||||||
privileged: true
|
privileged: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- retrieve build cache
|
- retrieve build cache
|
||||||
settings:
|
settings:
|
||||||
username: james
|
username: james
|
||||||
password:
|
password:
|
||||||
from_secret: REGISTRY_TOKEN
|
from_secret: REGISTRY_TOKEN
|
||||||
registry: code.harton.nz
|
registry: harton.dev
|
||||||
repo: code.harton.nz/james/dev-container/base
|
repo: harton.dev/james/dev-container/base
|
||||||
cache_from: 'type=local\\,src=.docker-build-cache'
|
cache_from: 'type=local\\,src=.docker-build-cache'
|
||||||
cache_to: 'type=local,dest=.docker-build-cache'
|
cache_to: "type=local,dest=.docker-build-cache"
|
||||||
provenance: false
|
provenance: false
|
||||||
context: ./base
|
context: ./base
|
||||||
dockerfile: ./base/Dockerfile
|
dockerfile: ./base/Dockerfile
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
|
|
||||||
- name: dev-container/elixir
|
- name: dev-container/elixir
|
||||||
image: thegeeklab/drone-docker-buildx:24
|
image: thegeeklab/drone-docker-buildx:24
|
||||||
privileged: true
|
privileged: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- dev-container/base
|
- dev-container/base
|
||||||
settings:
|
settings:
|
||||||
username: james
|
username: james
|
||||||
password:
|
password:
|
||||||
from_secret: REGISTRY_TOKEN
|
from_secret: REGISTRY_TOKEN
|
||||||
registry: code.harton.nz
|
registry: harton.dev
|
||||||
repo: code.harton.nz/james/dev-container/elixir
|
repo: harton.dev/james/dev-container/elixir
|
||||||
cache_from: 'type=local\\,src=.docker-build-cache'
|
cache_from: 'type=local\\,src=.docker-build-cache'
|
||||||
cache_to: 'type=local,dest=.docker-build-cache'
|
cache_to: "type=local,dest=.docker-build-cache"
|
||||||
provenance: false
|
provenance: false
|
||||||
context: ./elixir
|
context: ./elixir
|
||||||
dockerfile: ./elixir/Dockerfile
|
dockerfile: ./elixir/Dockerfile
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
|
|
||||||
- name: dev-container/rust
|
- name: dev-container/rust
|
||||||
image: thegeeklab/drone-docker-buildx:24
|
image: thegeeklab/drone-docker-buildx:24
|
||||||
privileged: true
|
privileged: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- dev-container/base
|
- dev-container/base
|
||||||
settings:
|
settings:
|
||||||
username: james
|
username: james
|
||||||
password:
|
password:
|
||||||
from_secret: REGISTRY_TOKEN
|
from_secret: REGISTRY_TOKEN
|
||||||
registry: code.harton.nz
|
registry: harton.dev
|
||||||
repo: code.harton.nz/james/dev-container/rust
|
repo: harton.dev/james/dev-container/rust
|
||||||
cache_from: 'type=local\\,src=.docker-build-cache'
|
cache_from: 'type=local\\,src=.docker-build-cache'
|
||||||
cache_to: 'type=local,dest=.docker-build-cache'
|
cache_to: "type=local,dest=.docker-build-cache"
|
||||||
provenance: false
|
provenance: false
|
||||||
context: ./rust
|
context: ./rust
|
||||||
dockerfile: ./rust/Dockerfile
|
dockerfile: ./rust/Dockerfile
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
- linux/amd64
|
- linux/amd64
|
||||||
|
|
||||||
- name: store build cache
|
- name: store build cache
|
||||||
image: meltwater/drone-cache
|
image: meltwater/drone-cache
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
AWS_ACCESS_KEY_ID:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: ACCESS_KEY_ID
|
from_secret: ACCESS_KEY_ID
|
||||||
AWS_SECRET_ACCESS_KEY:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: SECRET_ACCESS_KEY
|
from_secret: SECRET_ACCESS_KEY
|
||||||
AWS_PLUGIN_PATH_STYLE: true
|
AWS_PLUGIN_PATH_STYLE: true
|
||||||
depends_on:
|
depends_on:
|
||||||
- dev-container/base
|
- dev-container/base
|
||||||
- dev-container/elixir
|
- dev-container/elixir
|
||||||
- dev-container/rust
|
- dev-container/rust
|
||||||
settings:
|
settings:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
endpoint:
|
endpoint:
|
||||||
from_secret: S3_ENDPOINT
|
from_secret: S3_ENDPOINT
|
||||||
bucket:
|
bucket:
|
||||||
from_secret: CACHE_BUCKET
|
from_secret: CACHE_BUCKET
|
||||||
region: us-east-1
|
region: us-east-1
|
||||||
path-style: true
|
path-style: true
|
||||||
mount: .docker-build-cache
|
mount: .docker-build-cache
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Dev Container.
|
# Dev Container.
|
||||||
|
|
||||||
[![Build Status](https://drone.harton.nz/api/badges/james/dev-container/status.svg)](https://drone.harton.nz/james/dev-container)
|
[![Build Status](https://drone.harton.dev/api/badges/james/dev-container/status.svg)](https://drone.harton.dev/james/dev-container)
|
||||||
|
|
||||||
This is my personal devcontainer setup which includes [ASDF](https://asdf-vm.com/) and [starship](https://starship.rs/).
|
This is my personal devcontainer setup which includes [ASDF](https://asdf-vm.com/) and [starship](https://starship.rs/).
|
||||||
|
|
||||||
|
@ -8,9 +8,9 @@ It should work as a good starting point for your devcontainer configuration.
|
||||||
|
|
||||||
## Variants.
|
## Variants.
|
||||||
|
|
||||||
* `code.harton.nz/james/dev-container/base` - the container with ASDF and starship installed.
|
- `harton.dev/james/dev-container/base` - the container with ASDF and starship installed.
|
||||||
* `code.harton.nz/james/dev-container/elixir` - built on top of the `base` container with the latest versions of Erlang and Elixir pre-installed to reduce build-time.
|
- `harton.dev/james/dev-container/elixir` - built on top of the `base` container with the latest versions of Erlang and Elixir pre-installed to reduce build-time.
|
||||||
* `code.harton.nz/james/dev-container/rust` - built on top of the `base` container with the latest version of Rust and it's tooling installed.
|
- `harton.dev/james/dev-container/rust` - built on top of the `base` container with the latest version of Rust and it's tooling installed.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -19,4 +19,3 @@ There are example `.devcontainer` directories in the `examples` directory.
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Public domain.
|
Public domain.
|
||||||
|
|
||||||
|
|
|
@ -54,8 +54,8 @@ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v${ASDF_VERSI
|
||||||
|
|
||||||
# Install dotfiles.
|
# Install dotfiles.
|
||||||
RUN mkdir -p $HOME/.config
|
RUN mkdir -p $HOME/.config
|
||||||
RUN curl -sS https://code.harton.nz/james/.config/raw/branch/main/starship-devcontainer.toml > $HOME/.config/starship.toml
|
RUN curl -sS https://harton.dev/james/.config/raw/branch/main/starship-devcontainer.toml > $HOME/.config/starship.toml
|
||||||
RUN curl -sS https://code.harton.nz/james/.config/raw/branch/main/zshrc > $HOME/.zshrc
|
RUN curl -sS https://harton.dev/james/.config/raw/branch/main/zshrc > $HOME/.zshrc
|
||||||
|
|
||||||
WORKDIR /workspace/
|
WORKDIR /workspace/
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.harton.nz/james/dev-container/base
|
FROM harton.dev/james/dev-container/base
|
||||||
|
|
||||||
ARG USERNAME=vscode
|
ARG USERNAME=vscode
|
||||||
ARG USER_UID=1000
|
ARG USER_UID=1000
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.harton.nz/james/dev-container/elixir:latest
|
FROM harton.dev/james/dev-container/elixir:latest
|
||||||
|
|
||||||
ARG USERNAME=vscode
|
ARG USERNAME=vscode
|
||||||
USER ${USERNAME}
|
USER ${USERNAME}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.harton.nz/james/dev-container/elixir:latest
|
FROM harton.dev/james/dev-container/elixir:latest
|
||||||
|
|
||||||
ARG USERNAME=vscode
|
ARG USERNAME=vscode
|
||||||
USER ${USERNAME}
|
USER ${USERNAME}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.harton.nz/james/dev-container/rust:latest
|
FROM harton.dev/james/dev-container/rust:latest
|
||||||
|
|
||||||
ARG USERNAME=vscode
|
ARG USERNAME=vscode
|
||||||
USER ${USERNAME}
|
USER ${USERNAME}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.harton.nz/james/dev-container/base
|
FROM harton.dev/james/dev-container/base
|
||||||
|
|
||||||
RUN asdf asdf plugin add rust
|
RUN asdf asdf plugin add rust
|
||||||
RUN asdf asdf install rust latest
|
RUN asdf asdf install rust latest
|
||||||
|
|
Loading…
Reference in a new issue