Skip to content

ci: fix docker build by using self-hosted runners #13

ci: fix docker build by using self-hosted runners

ci: fix docker build by using self-hosted runners #13

name: tsafacjo/mysql-dumb-aws:latest
on:
push:
branches:
- main
- feat/mysqlbackup_on_s3
paths:
- 'database/**'
- '.github/workflows/deploy_mysql_dumb_image.yml'
jobs:
build:
runs-on: arc-runner-set
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
run: |
pwd
ls
docker buildx create --use
docker build -t tsafacjo/mysql-dumb-aws:latest --platform linux/arm/v7 database/backup/docker
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push your-docker-registry/your-image-name:latest
env:
DOCKER_CLI_AGGREGATE: 1