Skip to content

Commit

Permalink
ci: use ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
kruserr committed Feb 23, 2024
1 parent 05a6098 commit 876825a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
IMAGE_NAME: rapiddb
IMAGE_CACHE: docker.pkg.github.com/kruserr/rapiddb/rapiddb:cache
IMAGE_CACHE: ghcr.io/kruserr/rapiddb/rapiddb:cache

jobs:
rustfmt:
Expand Down Expand Up @@ -95,15 +95,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build image
run: |
docker build \
-f tooling/Dockerfile \
--cache-from $IMAGE_CACHE \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--tag $IMAGE_NAME .
- name: Login to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Packages
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
IMAGE_NAME: rapiddb
IMAGE_CACHE: docker.pkg.github.com/kruserr/rapiddb/rapiddb:cache
IMAGE_CACHE: ghcr.io/kruserr/rapiddb/rapiddb:cache

jobs:
rustfmt:
Expand Down Expand Up @@ -54,15 +54,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build image
run: |
docker build \
-f tooling/Dockerfile \
--cache-from $IMAGE_CACHE \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--tag $IMAGE_NAME .
- name: Login to GitHub Packages
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image to GitHub Packages
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
Expand Down

0 comments on commit 876825a

Please sign in to comment.