use the official docker buildx action

This commit is contained in:
Fco. Javier Delgado del Hoyo 2021-03-06 13:03:08 +01:00
parent 7c8bb00622
commit 7e748dd82f
2 changed files with 7 additions and 6 deletions

View file

@ -16,11 +16,12 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Test - name: Test
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test
- name: Install buildx # https://github.com/docker/setup-qemu-action
id: buildx - name: Set up QEMU
uses: crazy-max/ghaction-docker-buildx@v1 uses: docker/setup-qemu-action@v1
with: # https://github.com/docker/setup-buildx-action
version: latest - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Get latest release version number - name: Get latest release version number
id: docker-tag id: docker-tag
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1 uses: yuya-takeyama/docker-tag-from-github-ref-action@v1

View file

@ -19,7 +19,7 @@ do
gzip "-$GZIP_LEVEL" -f "$FILENAME" gzip "-$GZIP_LEVEL" -f "$FILENAME"
echo "==> Creating symlink to latest backup: $(basename "$FILENAME".gz)" echo "==> Creating symlink to latest backup: $(basename "$FILENAME".gz)"
rm "$LATEST" 2> /dev/null 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 )) DB_COUNTER=$(( DB_COUNTER + 1 ))
else else
rm -rf "$FILENAME" rm -rf "$FILENAME"