From 65812dd77e3b3ebe38d1cf291151043d67d775e5 Mon Sep 17 00:00:00 2001 From: CyanoFresh Date: Tue, 17 Aug 2021 00:25:45 +0300 Subject: [PATCH] test 3 --- .github/workflows/docker-compose-publish.yml | 56 ++++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/docker-compose-publish.yml b/.github/workflows/docker-compose-publish.yml index f67c8e1..e848480 100644 --- a/.github/workflows/docker-compose-publish.yml +++ b/.github/workflows/docker-compose-publish.yml @@ -46,30 +46,30 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} -# # TODO: pull -# - name: docker/build-push-action -# uses: docker/build-push-action@v2 -# with: -# context: ./app1 -# file: ./app1/Dockerfile -# load: true -# push: false -# builder: ${{ steps.buildx.outputs.name }} -# tags: ${{ env.REGISTRY }}/${{ github.repository }}_app1:${{ github.event.release.tag_name }} -# cache-from: type=local,src=/tmp/.buildx-cache -# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new -# -# - name: docker/build-push-action -# uses: docker/build-push-action@v2 -# with: -# context: ./app2 -# file: ./app2/Dockerfile -# load: true -# push: false -# builder: ${{ steps.buildx.outputs.name }} -# tags: ${{ env.REGISTRY }}/${{ github.repository }}_app2:${{ github.event.release.tag_name }} -# cache-from: type=local,src=/tmp/.buildx-cache -# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new + # TODO: pull + - name: docker/build-push-action + uses: docker/build-push-action@v2 + with: + context: ./app1 + file: ./app1/Dockerfile + load: true + push: false + builder: ${{ steps.buildx.outputs.name }} + tags: ${{ env.REGISTRY }}/${{ github.repository }}_app1:${{ github.event.release.tag_name }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new + + - name: docker/build-push-action + uses: docker/build-push-action@v2 + with: + context: ./app2 + file: ./app2/Dockerfile + load: true + push: false + builder: ${{ steps.buildx.outputs.name }} + tags: ${{ env.REGISTRY }}/${{ github.repository }}_app2:${{ github.event.release.tag_name }} + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new - name: Build the stack run: docker-compose build --pull --build-arg BUILDKIT_INLINE_CACHE=1 @@ -77,7 +77,7 @@ jobs: - name: Push the stack run: docker-compose push -# - name: Move cache -# run: | -# rm -rf /tmp/.buildx-cache -# mv /tmp/.buildx-cache-new /tmp/.buildx-cache + - name: Move cache + run: | + rm -rf /tmp/.buildx-cache + mv /tmp/.buildx-cache-new /tmp/.buildx-cache