Skip to content

Commit ca492a6

Browse files
committed
Deploy image to SCW registry too
1 parent c879b19 commit ca492a6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,34 @@ jobs:
1515
username: ${{ secrets.DOCKERHUB_USERNAME }}
1616
password: ${{ secrets.DOCKERHUB_TOKEN }}
1717

18+
- name: Login to Scaleway Container Registry
19+
uses: docker/login-action@v3
20+
with:
21+
registry: rg.nl-ams.scw.cloud/httptoolkit
22+
username: nologin
23+
password: ${{ secrets.SCW_REGISTRY_KEY }}
24+
1825
- name: Extract Docker metadata
1926
id: meta
2027
uses: docker/metadata-action@v5
2128
with:
2229
github-token: ${{ secrets.GITHUB_TOKEN }}
23-
images: httptoolkit/anonymizing-reverse-proxy
30+
images: |
31+
httptoolkit/anonymizing-reverse-proxy
32+
rg.nl-ams.scw.cloud/httptoolkit/anonymizing-reverse-proxy
2433
tags: |
2534
type=raw,value=prod,enable={{is_default_branch}}
2635
type=raw,value=latest,enable={{is_default_branch}}
2736
type=sha
2837
29-
- name: Publish to Docker Hub
38+
- name: Build & publish API image to registries
3039
uses: docker/build-push-action@v5
3140
with:
3241
context: .
3342
push: ${{ github.event_name != 'pull_request' }}
3443
tags: ${{ steps.meta.outputs.tags }}
3544
labels: ${{ steps.meta.outputs.labels }}
45+
build-args: VERSION=${{ github.sha }}
3646

3747
- name: Redeploy container
3848
uses: httptoolkit/scaleway-serverless-container-deploy-action@v1

0 commit comments

Comments
 (0)