mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
use the official docker buildx action
This commit is contained in:
parent
7c8bb00622
commit
7e748dd82f
2 changed files with 7 additions and 6 deletions
11
.github/workflows/image.yml
vendored
11
.github/workflows/image.yml
vendored
|
@ -16,11 +16,12 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Test
|
||||
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test
|
||||
- name: Install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
version: latest
|
||||
# https://github.com/docker/setup-qemu-action
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
# https://github.com/docker/setup-buildx-action
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: Get latest release version number
|
||||
id: docker-tag
|
||||
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
|
||||
|
|
|
@ -19,7 +19,7 @@ do
|
|||
gzip "-$GZIP_LEVEL" -f "$FILENAME"
|
||||
echo "==> Creating symlink to latest backup: $(basename "$FILENAME".gz)"
|
||||
rm "$LATEST" 2> /dev/null
|
||||
cd /backup && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd -
|
||||
cd /backup || exit && ln -s $(basename "$FILENAME".gz) $(basename "$LATEST") && cd -
|
||||
DB_COUNTER=$(( DB_COUNTER + 1 ))
|
||||
else
|
||||
rm -rf "$FILENAME"
|
||||
|
|
Loading…
Reference in a new issue