Update quay.io/kairos/packages-arm64 Docker tag to v20231205163346 #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build images 🔧 | |
on: | |
pull_request: | |
jobs: | |
build-framework: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@master | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ttl.sh/framework | |
tags: | | |
type=schedule | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Build and push framework | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
target: framework | |
- name: Extract versions | |
run: | | |
docker run --name framework ${{ steps.meta.outputs.tags }} true || true | |
docker cp framework:/framework/etc/kairos/versions.yaml . | |
.github/yaml2md.sh >> $GITHUB_STEP_SUMMARY | |
docker rm framework | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: versions.zip | |
path: | | |
versions.yaml | |
if-no-files-found: error | |
build-framework-fips: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@master | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
ttl.sh/framework_fips | |
tags: | | |
type=schedule | |
type=ref,event=branch | |
type=ref,event=pr | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
- name: Build and push framework | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
target: framework_fips | |
- name: Extract versions | |
run: | | |
docker run --name framework ${{ steps.meta.outputs.tags }} true || true | |
docker cp framework:/framework/etc/kairos/versions.yaml . | |
.github/yaml2md.sh >> $GITHUB_STEP_SUMMARY | |
docker rm framework | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: versions_fips.zip | |
path: | | |
versions.yaml | |
if-no-files-found: error | |
comment-pr: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
needs: [build-framework, build-framework-fips] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download versions | |
uses: actions/download-artifact@v3 | |
with: | |
name: versions.zip | |
- name: Rename version | |
run: | | |
mv versions.yaml versions_framework.yaml | |
- name: Download versions fips | |
uses: actions/download-artifact@v3 | |
with: | |
name: versions_fips.zip | |
- name: Rename version fips | |
run: | | |
mv versions.yaml versions_fips.yaml | |
- name: Generate PR text | |
run: | | |
echo "Framework packages:" > pr-comment.txt | |
.github/yaml2md.sh versions_framework.yaml >> pr-comment.txt | |
echo "Framework fips packages:" >> pr-comment.txt | |
.github/yaml2md.sh versions_fips.yaml >> pr-comment.txt | |
- name: Comment PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
filePath: pr-comment.txt | |