diff --git a/.github/workflows/container-stable.yaml b/.github/workflows/container-stable.yaml index 08e4561..9931006 100644 --- a/.github/workflows/container-stable.yaml +++ b/.github/workflows/container-stable.yaml @@ -9,6 +9,8 @@ on: jobs: containerization: runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout uses: actions/checkout@v3 @@ -38,8 +40,7 @@ jobs: builder: ${{ steps.buildx.outputs.name }} context: . file: ./Dockerfile - # platforms: linux/amd64,linux/arm64 - platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 push: true tags: | ghcr.io/${{ github.repository }}:stable diff --git a/.github/workflows/container-version.yaml b/.github/workflows/container-version.yaml index 535160f..121c1ae 100644 --- a/.github/workflows/container-version.yaml +++ b/.github/workflows/container-version.yaml @@ -9,9 +9,11 @@ on: jobs: containerization: runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set version variable run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV @@ -29,14 +31,14 @@ jobs: uses: docker/setup-buildx-action@master - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} - password: ${{ secrets.CR_PAT }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: builder: ${{ steps.buildx.outputs.name }} context: . diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b991a9b..40971f5 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,22 +9,6 @@ on: - "src/**" 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: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/udeps_test.yaml b/.github/workflows/udeps_test.yaml new file mode 100644 index 0000000..700fdb8 --- /dev/null +++ b/.github/workflows/udeps_test.yaml @@ -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 + \ No newline at end of file