Merge pull request #3 from frli4797/batching_messages #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_TOKEN }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
# - | |
# name: Cache Docker layers | |
# uses: actions/cache@v3 | |
# with: | |
# path: /tmp/.buildx-cache | |
# key: ${{ runner.os }}-buildx-${{ hashFiles('**/Dockerfile') }} | |
# restore-keys: | | |
# ${{ runner.os }}-buildx- | |
- | |
name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
# context: . | |
# file: ./Dockerfile | |
push: true | |
platforms: linux/amd64,linux/arm64 #, linux/arm/v7, linux/arm/v8 | |
tags: ${{ vars.DOCKER_HUB_USER }}/ish:latest | |
cache-from: type=registry,ref=${{ vars.DOCKER_HUB_USER }}/ish:latest | |
cache-to: type=inline |