Skip to content

Commit

Permalink
move repo to ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
thanodnl committed Jul 10, 2024
1 parent 940cf96 commit 1699dc3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/build-test-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

# If current branch is not master,build and publish dev image
- name: Build & Push all dev images
Expand All @@ -66,11 +67,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

# If current branch is not master,build and publish dev image
- name: Build & Push all dev images
Expand All @@ -90,11 +92,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Build & Push all live images
run: |
Expand Down
2 changes: 1 addition & 1 deletion circleci/images/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# config variable
DOCKER_REPO ?= citus
DOCKER_REPO ?= ghcr.io/citusdata
SHA_SUFFIX := $(shell git rev-parse --short HEAD)

# auto generated variables
Expand Down

0 comments on commit 1699dc3

Please sign in to comment.