Skip to content

Commit bee470c

Browse files
committed
Don't push images to Docker Hub anymore
1 parent a2b5c90 commit bee470c

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ jobs:
2828
with:
2929
platforms: linux/amd64,linux/arm64
3030

31-
- name: Login to Docker Hub
32-
uses: docker/login-action@v3
33-
with:
34-
username: ${{ secrets.DOCKER_USERNAME }}
35-
password: ${{ secrets.DOCKER_TOKEN }}
36-
3731
- name: Login to ghcr.io
3832
uses: docker/login-action@v3
3933
if: github.ref == 'refs/heads/main'
@@ -50,9 +44,7 @@ jobs:
5044
push: ${{ github.ref == 'refs/heads/main' }}
5145
tags: |
5246
ghcr.io/${{ github.repository_owner }}/rails-base-builder:${{ env.TAG_NAME }}
53-
${{ github.repository_owner }}/rails-base-builder:${{ env.TAG_NAME }}
5447
ghcr.io/${{ github.repository_owner }}/rails-base-builder:latest
55-
${{ github.repository_owner }}/rails-base-builder:latest
5648
cache-from: type=gha
5749
cache-to: type=gha,mode=max
5850

@@ -64,8 +56,6 @@ jobs:
6456
push: ${{ github.ref == 'refs/heads/main' }}
6557
tags: |
6658
ghcr.io/${{ github.repository_owner }}/rails-base-final:${{ env.TAG_NAME }}
67-
${{ github.repository_owner }}/rails-base-final:${{ env.TAG_NAME }}
6859
ghcr.io/${{ github.repository_owner }}/rails-base-final:latest
69-
${{ github.repository_owner }}/rails-base-final:latest
7060
cache-from: type=gha
7161
cache-to: type=gha,mode=max

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ Using [Dependabot](https://dependabot.com/), every updated Ruby gem results in a
7272
Add this `Dockerfile` to your application:
7373

7474
```Dockerfile
75-
FROM ledermann/rails-base-builder:3.3.3-alpine AS Builder
76-
FROM ledermann/rails-base-final:3.3.3-alpine
75+
FROM ghcr.io/ledermann/rails-base-builder:3.3.3-alpine AS Builder
76+
FROM ghcr.io/ledermann/rails-base-final:3.3.3-alpine
7777
USER app
7878
# Optional: Enable YJIT
7979
# ENV RUBY_YJIT_ENABLE=1
@@ -93,8 +93,8 @@ $ docker build .
9393
[BuildKit](https://docs.docker.com/develop/develop-images/build_enhancements/) requires a little [workaround](https://github.com/moby/buildkit/issues/816) to trigger the ONBUILD statements. Add a `COPY` statement to the `Dockerfile`:
9494

9595
```Dockerfile
96-
FROM ledermann/rails-base-builder:3.3.3-alpine AS Builder
97-
FROM ledermann/rails-base-final:3.3.3-alpine
96+
FROM ghcr.io/ledermann/rails-base-builder:3.3.3-alpine AS Builder
97+
FROM ghcr.io/ledermann/rails-base-final:3.3.3-alpine
9898

9999
# Workaround to trigger Builder's ONBUILDs to finish:
100100
COPY --from=Builder /etc/alpine-release /tmp/dummy

0 commit comments

Comments
 (0)