Skip to content

Commit

Permalink
Update alpine.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Sep 26, 2023
1 parent 2e54824 commit 1813f2b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
fail-fast: false
matrix:
arch: [amd64, arm, arm64]
#version: [3.12, 3.14, 3.16, 3.18]
version: [3.12]
version: [3.12, 3.14, 3.16, 3.18]
env:
name: "treehouses/alpine"
steps:
Expand All @@ -36,8 +35,7 @@ jobs:
run: |
export DOCKER_CLI_EXPERIMENTAL=enabled
tags="$name-tags"
repo="$tags:${{ matrix.arch }}"
more="treehouses/alpine-tags:${{ matrix.arch }}-${{ matrix.version }}"
repo="$tags:${{ matrix.arch }}"-${{ matrix.version }}"
case ${{ matrix.arch }} in
amd64) : "amd64/alpine:${{ matrix.version }}" ;;
arm) : "balenalib/raspberry-pi-alpine:${{ matrix.version }}" ;;
Expand All @@ -46,10 +44,8 @@ jobs:
base="$_"
docker pull -q $base &>/dev/null
docker pull -q $repo &>/dev/null
#docker pull -q $more &>/dev/null
basesha=$(docker image inspect $base | jq --raw-output '.[0].RootFS.Layers|.[]')
reposha=$(docker image inspect $repo | jq --raw-output '.[0].RootFS.Layers|.[]')
#reposha=$(docker image inspect $more | jq --raw-output '.[0].RootFS.Layers|.[]')
echo "base sha:$basesha repo sha:$reposha"
${{ github.event.inputs.buildtype == 'force' }} && echo "images=true" >> $GITHUB_OUTPUT || echo "no force"
[[ $reposha == *$basesha* ]] && echo "no changes" || echo "images=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 1813f2b

Please sign in to comment.