Skip to content

Commit

Permalink
fix(ci): upgrade .github to v0.6.1 and do proper tags merging
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Jul 24, 2023
1 parent c6563a0 commit fde5c17
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Build and Push Multi-Arch Images

on:
push:
branches:
- develop
- main
tags:
- "v*.*.*"
# branches:
# - develop
# - main
# tags:
# - "v*.*.*"

jobs:
get-tag:
Expand All @@ -16,7 +16,7 @@ jobs:
tag: ${{ steps.parse-tag.outputs.tag }}
steps:
- uses: actions/checkout@v3
- uses: aica-technology/.github/.github/actions/docker-tag-from-git@v0.5.0
- uses: aica-technology/.github/.github/actions/docker-tag-from-git@v0.6.1
id: parse-tag

build:
Expand All @@ -33,10 +33,16 @@ jobs:
name: Build and publish (${{ matrix.arch }})
steps:
- uses: actions/checkout@v3
- uses: aica-technology/.github/.github/actions/ghcr-build@v0.5.0
- uses: aica-technology/.github/.github/actions/list-add-suffixes@v0.6.1
id: merge-tags
with:
list: ${{ needs.get-tag.outputs.tag }}
suffixes: ${{ matrix.arch }}
glue_separator: "-"
- uses: aica-technology/.github/.github/actions/ghcr-build@v0.6.1
with:
image_name: aica-technology/network-interfaces
image_tags: ${{ needs.get-tag.outputs.tag }}-${{ matrix.arch }}
image_tags: ${{ steps.merge-tags.outputs.list }}
dockerfile_path: Dockerfile.ci
token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -45,7 +51,7 @@ jobs:
name: Merge into a multi-arch image
needs: [get-tag, build]
steps:
- uses: aica-technology/.github/.github/actions/ghcr-manifest-merge@v0.5.0
- uses: aica-technology/.github/.github/actions/ghcr-manifest-merge@v0.6.1
with:
image_name: aica-technology/network-interfaces
image_tags: ${{ needs.get-tag.outputs.tag }}
Expand Down

0 comments on commit fde5c17

Please sign in to comment.