Skip to content

Commit ac4dfc4

Browse files
authored
use dockerhub instead of ghcr.io and rename image to replicated-sdk (#112)
1 parent cad58c8 commit ac4dfc4

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/daily-scan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434

3535
- name: Build replicated image from Dockerfile
3636
run: |
37-
docker build --pull -t replicated/replicated:${{ github.sha }} .
37+
docker build --pull -t replicated/replicated-sdk:${{ github.sha }} .
3838
3939
- name: Run Trivy vulnerability scanner
4040
uses: aquasecurity/trivy-action@master
4141
with:
42-
image-ref: 'replicated/replicated:${{ github.sha }}'
42+
image-ref: 'replicated/replicated-sdk:${{ github.sha }}'
4343
format: 'sarif'
4444
output: 'trivy-results.sarif'
4545
ignore-unfixed: true

.github/workflows/publish.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,24 @@ jobs:
102102
username: ${{github.actor}}
103103
password: ${{secrets.GITHUB_TOKEN}}
104104

105+
- uses: azure/docker-login@v1
106+
with:
107+
username: ${{ secrets.DOCKERHUB_USER }}
108+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
109+
105110
- name: Run Package and Publish
106111
env:
107112
REPLICATED_TAG: v${{needs.get-tags.outputs.tag}}
108-
REPLICATED_REGISTRY: ghcr.io/replicatedhq # TODO: move to docker.io
113+
REPLICATED_REGISTRY: replicated # docker.io/replicated
109114
REPLICATED_CHART_NAME: replicated
110115
REPLICATED_CHART_VERSION: ${{needs.get-tags.outputs.tag}}
111116
REPLICATED_USER_STAGING: ${{secrets.REPLICATED_USER_STAGING}}
112117
REPLICATED_PASS_STAGING: ${{secrets.REPLICATED_PASS_STAGING}}
113118
REPLICATED_USER_PROD: ${{secrets.REPLICATED_USER_PROD}}
114119
REPLICATED_PASS_PROD: ${{secrets.REPLICATED_PASS_PROD}}
115120
run: |
116-
docker build --pull -t "$REPLICATED_REGISTRY/replicated:$REPLICATED_TAG" --build-arg git_tag=${{needs.get-tags.outputs.tag}} .
117-
docker push "$REPLICATED_REGISTRY/replicated:$REPLICATED_TAG"
121+
docker build --pull -t "$REPLICATED_REGISTRY/replicated-sdk:$REPLICATED_TAG" --build-arg git_tag=${{needs.get-tags.outputs.tag}} .
122+
docker push "$REPLICATED_REGISTRY/replicated-sdk:$REPLICATED_TAG"
118123
119124
# TEMPORARY: for backwards compatibility, create another directory to use for the "replicated-sdk" chart
120125
cp -R chart chart-sdk

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ vet:
5858

5959
.PHONY: build-ttl.sh
6060
build-ttl.sh:
61-
docker build -t ttl.sh/${USER}/replicated:24h .
62-
docker push ttl.sh/${USER}/replicated:24h
61+
docker build -t ttl.sh/${USER}/replicated-sdk:24h .
62+
docker push ttl.sh/${USER}/replicated-sdk:24h
6363

6464
make -C chart build-ttl.sh
6565

chart/values.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Declare variables to be passed into your templates.
44

55
images:
6-
replicated: ${REPLICATED_REGISTRY}/replicated:${REPLICATED_TAG}
6+
replicated: ${REPLICATED_REGISTRY}/replicated-sdk:${REPLICATED_TAG}
77

88
license: ""
99
licenseFields: ""

0 commit comments

Comments
 (0)