Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix: ci docker build
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <[email protected]>
  • Loading branch information
Freyskeyd committed Nov 20, 2023
1 parent 38cc514 commit f3b6b75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/docker_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
uses: ./.github/workflows/docker_utils.yml
secrets: inherit

broadcast_channels:
uses: ./.github/workflows/docker_utils.yml
secrets: inherit
with:
features: broadcast_via_channels

network:
uses: ./.github/workflows/docker_utils.yml
secrets: inherit
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/docker_utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ jobs:
aws configure set aws_secret_access_key ${{ env.AWS_SECRET_ACCESS_KEY }} --profile default
aws configure set aws_session_token ${{ env.AWS_SESSION_TOKEN }} --profile default
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Push to GitHub Container Registry
uses: docker/build-push-action@v3
with:
Expand All @@ -74,12 +85,12 @@ jobs:
# push only images targeting topos (e.g.: exclude test, lint, etc.)
push: ${{ inputs.target == 'topos' }}
target: ${{ inputs.target }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secret-files: |
"aws=${{ github.workspace }}/.aws/credentials"
build-args: |
TOOLCHAIN_VERSION=${{ inputs.toolchain_version }}
FEATURES=${{ inputs.features }}
SCCACHE_S3_KEY_PREFIX=${{ inputs.target }}
SCCACHE_BUCKET=cicd-devnet-1-sccache
SCCACHE_REGION=us-east-1
Expand Down

0 comments on commit f3b6b75

Please sign in to comment.