From 7e748dd82fea1bbf33351aeaca3f05ae4639899d Mon Sep 17 00:00:00 2001 From: "Fco. Javier Delgado del Hoyo" Date: Sat, 6 Mar 2021 13:03:08 +0100 Subject: [PATCH] use the official docker buildx action --- .github/workflows/image.yml | 11 ++++++----- backup.sh | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index efc5c8c..5143bcb 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -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 diff --git a/backup.sh b/backup.sh index d4cacb3..793c27e 100755 --- a/backup.sh +++ b/backup.sh @@ -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"