Skip to content

Commit

Permalink
use dockerhub instead of ghcr.io and rename image to replicated-sdk (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Oct 27, 2023
1 parent cad58c8 commit ac4dfc4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:

- name: Build replicated image from Dockerfile
run: |
docker build --pull -t replicated/replicated:${{ github.sha }} .
docker build --pull -t replicated/replicated-sdk:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'replicated/replicated:${{ github.sha }}'
image-ref: 'replicated/replicated-sdk:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,24 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- uses: azure/docker-login@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Run Package and Publish
env:
REPLICATED_TAG: v${{needs.get-tags.outputs.tag}}
REPLICATED_REGISTRY: ghcr.io/replicatedhq # TODO: move to docker.io
REPLICATED_REGISTRY: replicated # docker.io/replicated
REPLICATED_CHART_NAME: replicated
REPLICATED_CHART_VERSION: ${{needs.get-tags.outputs.tag}}
REPLICATED_USER_STAGING: ${{secrets.REPLICATED_USER_STAGING}}
REPLICATED_PASS_STAGING: ${{secrets.REPLICATED_PASS_STAGING}}
REPLICATED_USER_PROD: ${{secrets.REPLICATED_USER_PROD}}
REPLICATED_PASS_PROD: ${{secrets.REPLICATED_PASS_PROD}}
run: |
docker build --pull -t "$REPLICATED_REGISTRY/replicated:$REPLICATED_TAG" --build-arg git_tag=${{needs.get-tags.outputs.tag}} .
docker push "$REPLICATED_REGISTRY/replicated:$REPLICATED_TAG"
docker build --pull -t "$REPLICATED_REGISTRY/replicated-sdk:$REPLICATED_TAG" --build-arg git_tag=${{needs.get-tags.outputs.tag}} .
docker push "$REPLICATED_REGISTRY/replicated-sdk:$REPLICATED_TAG"
# TEMPORARY: for backwards compatibility, create another directory to use for the "replicated-sdk" chart
cp -R chart chart-sdk
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ vet:

.PHONY: build-ttl.sh
build-ttl.sh:
docker build -t ttl.sh/${USER}/replicated:24h .
docker push ttl.sh/${USER}/replicated:24h
docker build -t ttl.sh/${USER}/replicated-sdk:24h .
docker push ttl.sh/${USER}/replicated-sdk:24h

make -C chart build-ttl.sh

Expand Down
2 changes: 1 addition & 1 deletion chart/values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Declare variables to be passed into your templates.

images:
replicated: ${REPLICATED_REGISTRY}/replicated:${REPLICATED_TAG}
replicated: ${REPLICATED_REGISTRY}/replicated-sdk:${REPLICATED_TAG}

license: ""
licenseFields: ""
Expand Down

0 comments on commit ac4dfc4

Please sign in to comment.