diff --git a/.github/workflows/docker-package.yaml b/.github/workflows/docker-package.yaml index 5a62d59..797ace1 100644 --- a/.github/workflows/docker-package.yaml +++ b/.github/workflows/docker-package.yaml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - # Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. + # Uses the `docker/login-action` action to log in to the Container registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here. - name: Log in to the Container registry uses: docker/login-action@v3 with: @@ -44,4 +44,6 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 61cd50c..35aa0cf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,6 +8,9 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: write + packages: write steps: - name: Checkout Repository @@ -21,6 +24,8 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Build run: cargo build --release + with: + cache: 'true' - name: Package run: tar -czvf release.tar.gz -C target/release . @@ -29,7 +34,7 @@ jobs: id: publish_release uses: softprops/action-gh-release@v2 env: - GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: files: | release.tar.gz diff --git a/Dockerfile b/Dockerfile index a49bb1e..0930c27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ARG APP_NAME WORKDIR /app # Install host build dependencies. -RUN apk add --no-cache clang lld musl-dev git +RUN apk add --no-cache clang lld musl-dev git pkgconfig openssl-dev # Build the application. # Leverage a cache mount to /usr/local/cargo/registry/