Skip to content

Commit

Permalink
test 3
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoFresh committed Aug 16, 2021
1 parent b391ef6 commit 65812dd
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/docker-compose-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,38 @@ 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

- 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

0 comments on commit 65812dd

Please sign in to comment.