mirror of
https://github.com/1f349/vaultwarden-binary.git
synced 2024-12-21 23:24:12 +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