diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f4d816f3..0896d923 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,6 +2,9 @@ name: Release on: push: + branches: + - main + - mutlisessions tags: - "*" @@ -10,7 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Docker meta id: meta @@ -22,6 +29,7 @@ jobs: type=ref,event=branch type=ref,event=pr type=semver,pattern={{version}} + - name: Login to image repository if: github.ref_type == 'tag' uses: docker/login-action@v2 @@ -37,3 +45,5 @@ jobs: push: ${{ github.ref_type == 'tag' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha