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
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue