diff --git a/.github/workflows/push_to_registry.yml b/.github/workflows/push_to_registry.yml new file mode 100644 index 0000000..d7af15e --- /dev/null +++ b/.github/workflows/push_to_registry.yml @@ -0,0 +1,28 @@ +name: ci + +on: + push: + branches: + - 'master' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v4 + with: + platforms: linux/amd64 + push: true + tags: ghcr.io/deltablot/mysqldump:latest