Skip to content

Commit

Permalink
ci(fix): add secondary container repository/registry overrides (#83)
Browse files Browse the repository at this point in the history
* Add repo env override for docker regository

* Add ca-certificates for runtime docker image

* Add ca-certificates for runtime docker image - GitHub Action dual build
  • Loading branch information
leet4tari authored Mar 7, 2023
1 parent 0e34804 commit 0f77a0c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ name: Build docker image
- 'v[0-9]+.[0-9]+.[0-9]*'

env:
SREGISTRY: quay.io
SREPOSITORY_DEFAULT: tari-project
SIMAGE_NAME: gh-pilot
# Secondary Container Registory Defaults
# Can be override as repo envs/vars
SREGISTRY_DEFAULT: quay.io
SREPOSITORY_DEFAULT: tarilabs
SIMAGE_NAME_DEFAULT: gh-pilot

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -42,8 +44,12 @@ jobs:
id: envs_setup
shell: bash
run: |
SREPOSITORY=${{ vars.SREPOSITORY_FROM_REPO }}
SREGISTRY=${{ vars.SREGISTRY }}
echo "SREGISTRY=${SREGISTRY:-${{ env.SREGISTRY_DEFAULT }}}" >> $GITHUB_ENV
SREPOSITORY=${{ vars.SREPOSITORY }}
echo "SREPOSITORY=${SREPOSITORY:-${{ env.SREPOSITORY_DEFAULT }}}" >> $GITHUB_ENV
SIMAGE_NAME=${{ vars.SIMAGE_NAME }}
echo "SIMAGE_NAME=${SIMAGE_NAME:-${{ env.SIMAGE_NAME_DEFAULT }}}" >> $GITHUB_ENV
- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down

0 comments on commit 0f77a0c

Please sign in to comment.