mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-10-09 02:50:19 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
33 lines
968 B
YAML
33 lines
968 B
YAML
|
|
name: build docker image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "**"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout the code
|
|
uses: actions/checkout@v5
|
|
# https://github.com/docker/setup-qemu-action
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
# https://github.com/docker/setup-buildx-action
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Get latest release version number
|
|
id: docker-tag
|
|
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: fradelg
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build multiarch image
|
|
run: |
|
|
docker buildx build --push \
|
|
--tag fradelg/mysql-cron-backup:${{ steps.docker-tag.outputs.tag }} \
|
|
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|