Merge pull request #116 from ViViDboarder/action-dependa-bump

Action dependa bump
This commit is contained in:
Ian 2023-01-25 16:03:11 -08:00 committed by GitHub
commit 9c6c339dc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
@ -24,7 +24,7 @@ jobs:
- name: Run tests
run: cargo test --verbose
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
- name: Run pre-commit hooks
uses: pre-commit/action@v2.0.3

View File

@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
@ -42,12 +42,12 @@ jobs:
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ${{ matrix.dockerfile }}

View File

@ -14,7 +14,8 @@ RUN USER=rust touch ./src/main.rs
RUN cargo build --release
FROM alpine:3
RUN apk --no-cache add ca-certificates=20211220-r0
# hadolint ignore=DL3018
RUN apk --no-cache add ca-certificates
COPY --from=builder \
/home/rust/src/target/x86_64-unknown-linux-musl/release/vaultwarden_ldap \
/usr/local/bin/