Skip to content

Commit

Permalink
also add _ubuntu for previous steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Dec 8, 2023
1 parent 89bb4b2 commit edd13de
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish_docker_matrix_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
type=match,pattern=tc_v(\d+.\d+.\d+-\S+),group=1
flavor: |
prefix=arch_,onlatest=true
suffix=_${{ matrix.platform }},onlatest=true
suffix=_${{ matrix.platform }}_ubuntu,onlatest=true
- name: Build & push digest docker ${{ matrix.platform }}
id: build
Expand All @@ -88,6 +88,14 @@ jobs:
commit_sha="${{ github.sha }}"
touch "/tmp/digests/${commit_sha}/${digest#sha256:}"
- name: Modify tags
id: modify_tags
run: |
original_tags="${{ steps.matrix_meta.outputs.tags }}"
modified_tags=$(echo "$original_tags" | sed 's/_ubuntu//')
all_tags="$original_tags $modified_tags"
echo "::set-output name=all_tags::$all_tags"
- name: Push docker tags ${{ matrix.platform }}
id: push_tags
uses: docker/build-push-action@v2
Expand All @@ -96,7 +104,7 @@ jobs:
file: DockerfileUbuntu
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.matrix_meta.outputs.tags }}
tags: ${{ steps.modify_tags.outputs.all_tags }}
labels: ${{ steps.matrix_meta.outputs.labels }}

- name: Upload digest
Expand Down

0 comments on commit edd13de

Please sign in to comment.