Skip to content

Commit

Permalink
Publish to a different registry
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkdog committed Dec 27, 2023
1 parent 3add80c commit 2171ef2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/cr_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to Vultr
name: Publish to Docker Registry

on:
workflow_dispatch:
Expand All @@ -15,13 +15,19 @@ jobs:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
# generate the images and tags we'll publish to the registry
# enable built or pulled docker images to be cached
- name: Enable Docker Cache
uses: ScribeMD/[email protected]
with:
key: docker-${{ runner.os }}-${{ hashFiles('dependencies.sh') }}

# generate the images and tags that we'll publish to the registry
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
sjc.vultrcr.com/starfly13/starfly13
docker.ss13.host/starfly13
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{date 'YYYYMMDDHHmmss'}}
Expand All @@ -40,8 +46,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: sjc.vultrcr.com
username: ${{ secrets.VULTR_USERNAME }}
password: ${{ secrets.VULTR_APIKEY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

# build and push to the registry
- name: Build and push
Expand Down
File renamed without changes.

1 comment on commit 2171ef2

@lectronyx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? How does this affect things? We're still on Vultr

Please sign in to comment.