Try setting a permission
This commit is contained in:
parent
0bd3848185
commit
766ffae4f5
5
.github/workflows/container-stable.yaml
vendored
5
.github/workflows/container-stable.yaml
vendored
@ -9,6 +9,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
containerization:
|
containerization:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -38,8 +40,7 @@ jobs:
|
|||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
# platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
platforms: linux/amd64
|
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository }}:stable
|
ghcr.io/${{ github.repository }}:stable
|
||||||
|
10
.github/workflows/container-version.yaml
vendored
10
.github/workflows/container-version.yaml
vendored
@ -9,9 +9,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
containerization:
|
containerization:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set version variable
|
- name: Set version variable
|
||||||
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
||||||
@ -29,14 +31,14 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@master
|
uses: docker/setup-buildx-action@master
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.CR_PAT }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
context: .
|
context: .
|
||||||
|
16
.github/workflows/tests.yaml
vendored
16
.github/workflows/tests.yaml
vendored
@ -9,22 +9,6 @@ on:
|
|||||||
- "src/**"
|
- "src/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cargo_udeps:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
|
|
||||||
- name: Install cargo-udeps
|
|
||||||
run: cargo install cargo-udeps --locked
|
|
||||||
|
|
||||||
- name: Check dependencies
|
|
||||||
run: cargo +nightly udeps
|
|
||||||
|
|
||||||
cargo_test:
|
cargo_test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
25
.github/workflows/udeps_test.yaml
vendored
Normal file
25
.github/workflows/udeps_test.yaml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
name: "Tests"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cargo_udeps:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
|
||||||
|
- name: Install cargo-udeps
|
||||||
|
run: cargo install cargo-udeps --locked
|
||||||
|
|
||||||
|
- name: Check dependencies
|
||||||
|
run: cargo +nightly udeps
|
||||||
|
|
Loading…
Reference in New Issue
Block a user