mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
fix issues in build action
This commit is contained in:
parent
37c242b292
commit
057b0e823e
1 changed files with 4 additions and 4 deletions
8
.github/workflows/image.yml
vendored
8
.github/workflows/image.yml
vendored
|
@ -3,7 +3,7 @@ name: build docker image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "!*"
|
- "**"
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
|
||||||
|
@ -19,12 +19,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
- name: Get latest release version number
|
- name: Get latest release version number
|
||||||
id: get_version
|
id: docker-tag
|
||||||
uses: battila7/get-version-action@v2
|
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
- name: Build multiarch image
|
- name: Build multiarch image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
--tag fradelg/mysql-cron-backup:{{ steps.get_version.outputs.version-without-v }} \
|
--tag fradelg/mysql-cron-backup:${{ steps.docker-tag.outputs.tag }} \
|
||||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
Loading…
Reference in a new issue