mirror of
https://github.com/1f349/vaultwarden-binary.git
synced 2024-12-22 07:34:16 +00:00
First commit
This commit is contained in:
commit
49c009de0b
24
.github/workflows/build.yml
vendored
Normal file
24
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
update:
|
||||
name: Update
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Update
|
||||
run: |
|
||||
#!/bin/bash
|
||||
latestVersion="$(curl -q --fail 'https://api.github.com/repos/dani-garcia/vaultwarden/releases/latest' | jq -r '.tag_name' -)"
|
||||
if gh release view "$latestVersion"; then
|
||||
exit 0
|
||||
fi
|
||||
docker pull --platform linux/amd64 vaultwarden/server:"$latestVersion"
|
||||
id="$(docker create vaultwarden/server:"$latestVersion")"
|
||||
docker cp "$id":/vaultwarden vaultwarden
|
||||
docker cp "$id":/web-vault web-vault
|
||||
docker rm -v "$id"
|
Loading…
Reference in New Issue
Block a user