This commit is contained in:
parent
05c55b2b70
commit
01041ff3d8
@ -9,6 +9,14 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04-node
|
runs-on: ubuntu-22.04-node
|
||||||
steps:
|
steps:
|
||||||
|
- name: "Add Cargo registry"
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.cargo && \
|
||||||
|
echo '[registries.gitea]' \
|
||||||
|
'index = "sparse+https://git.toast-server.net/api/packages/toast/cargo/"' \
|
||||||
|
'token = "Bearer ${{ secrets.CARGO_TOKEN }}"' >> ~/.cargo/config.toml
|
||||||
|
cat ~/.cargo/config.toml
|
||||||
|
|
||||||
- name: Set up Docker environment
|
- name: Set up Docker environment
|
||||||
run: |
|
run: |
|
||||||
apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release
|
apt update && apt upgrade -y && apt install -y apt-transport-https ca-certificates curl zstd gnupg lsb-release
|
||||||
@ -31,13 +39,6 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3
|
uses: https://github.com/docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3
|
||||||
|
|
||||||
- name: "Add Cargo registry"
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.cargo && \
|
|
||||||
echo '[registries.gitea]' \
|
|
||||||
'index = "sparse+https://git.toast-server.net/api/packages/toast/cargo/"' \
|
|
||||||
'token = "Bearer ${{ secrets.CARGO_TOKEN }}"' >> ~/.cargo/config.toml
|
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: https://github.com/docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
uses: https://github.com/docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user