ci: Allow write for contents and id-token

This commit is contained in:
Gerald Pinder 2024-01-23 22:03:33 -05:00
parent 6a4c89d567
commit e8e8bfa096
3 changed files with 12 additions and 1 deletions

View file

@ -12,6 +12,9 @@ env:
jobs:
build:
permissions:
id-token: write # Enable OIDC
contents: write
timeout-minutes: 30
runs-on: ubuntu-latest

View file

@ -10,6 +10,9 @@ env:
jobs:
tag:
permissions:
id-token: write # Enable OIDC
contents: write
timeout-minutes: 60
runs-on: ubuntu-latest

View file

@ -53,7 +53,12 @@ install:
SAVE ARTIFACT target/$BUILD_TARGET/release/bb
common:
FROM registry.gitlab.com/wunker-bunker/cargo-builder
FROM rust
RUN apt-get update && \
apt-get install -y musl-dev && \
rustup component add clippy && \
rustup target add x86_64-unknown-linux-musl
WORKDIR /app
COPY --keep-ts --dir src/ templates/ /app