Skip to content

Commit

Permalink
feat: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
elraro committed May 20, 2023
1 parent 408bb4b commit dd3911c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/old-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
push: false
load: true
tags: |
${{ env.REGISTRY }}/congatudo/old-old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
${{ env.REGISTRY }}/congatudo/old-old-congatudo:${{ matrix.image_name }}-latest
${{ env.REGISTRY }}/congatudo/old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
${{ env.REGISTRY }}/congatudo/old-congatudo:${{ matrix.image_name }}-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
build-args: |
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Test
shell: '/bin/bash {0}'
run: |
docker run --rm ${{ env.REGISTRY }}/congatudo/old-old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
docker run --rm ${{ env.REGISTRY }}/congatudo/old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
ret=$?
if [ $ret -eq 1 ]; then
exit 0
Expand All @@ -83,8 +83,8 @@ jobs:
fi
- name: Push
run: |
docker push ${{ env.REGISTRY }}/congatudo/old-old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
docker push ${{ env.REGISTRY }}/congatudo/old-old-congatudo:${{ matrix.image_name }}-latest
docker push ${{ env.REGISTRY }}/congatudo/old-congatudo:${{ matrix.image_name }}-${{ needs.info.outputs.version }}
docker push ${{ env.REGISTRY }}/congatudo/old-congatudo:${{ matrix.image_name }}-latest
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
Expand All @@ -105,10 +105,10 @@ jobs:
- name: Create manifest
run: |
# TODO: Use matrix here.
docker manifest create ${{ env.REGISTRY }}/congatudo/old-old-congatudo:alpine-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-old-congatudo:alpine-armv7-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-old-congatudo:alpine-aarch64-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-old-congatudo:alpine-amd64-latest
docker manifest create ${{ env.REGISTRY }}/congatudo/old-congatudo:alpine-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-congatudo:alpine-armv7-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-congatudo:alpine-aarch64-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-congatudo:alpine-amd64-latest
docker manifest create ${{ env.REGISTRY }}/congatudo/old-congatudo:homeassistant-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-congatudo:homeassistant-armhf-latest \
--amend ${{ env.REGISTRY }}/congatudo/old-congatudo:homeassistant-armv7-latest \
Expand Down

0 comments on commit dd3911c

Please sign in to comment.