Skip to content

Commit

Permalink
Use a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain committed Dec 9, 2024
1 parent 926d859 commit b5d3b2e
Show file tree
Hide file tree
Showing 45 changed files with 60 additions and 4,488 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/ci.yml

This file was deleted.

19 changes: 13 additions & 6 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
revision: ${{ steps.fetch-revision.outputs.revision }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Download source
run: curl -o ruby.tar.xz https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.tar.xz
- uses: actions/upload-artifact@v4
Expand All @@ -42,10 +44,10 @@ jobs:
- id: fetch-json
run: echo "json=$(./nightly-versions.rb)" >> "$GITHUB_OUTPUT"
- id: fetch-date
run: echo "date=$(jq -r .master.date versions.json)" >> $GITHUB_OUTPUT
run: echo "date=$(jq -r .master.date docker-ruby/versions.json)" >> $GITHUB_OUTPUT
- id: fetch-revision
run: echo revision=$(tar -xf ruby.tar.xz snapshot-master/revision.h -O | grep -oP '(?<=RUBY_REVISION ")(.*)(?=")') >> $GITHUB_OUTPUT
- run: ./apply-templates.sh
- run: cd docker-ruby && ./apply-templates.sh

- id: fetch-matrix
run: echo "images=$(./images.rb)" >> "$GITHUB_OUTPUT"
Expand All @@ -61,8 +63,11 @@ jobs:
name: ${{ matrix.image.variant }} - ${{ matrix.image.platform }}
steps:
- uses: actions/checkout@v4
- run: echo '${{ needs.set-up-matrix.outputs.json }}' > versions.json
- run: ./apply-templates.sh
with:
submodules: true
- run: echo '${{ needs.set-up-matrix.outputs.json }}' > docker-ruby/versions.json
- run: cd docker-ruby && git apply ../Dockerfile.template.patch
- run: cd docker-ruby && ./apply-templates.sh

- name: Docker meta
id: meta
Expand All @@ -89,13 +94,13 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: snapshot-master
path: ./master/${{ matrix.image.variant }}
path: ./docker-ruby/master/${{ matrix.image.variant }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
with:
context: ./master/${{ matrix.image.variant }}
context: ./docker-ruby/master/${{ matrix.image.variant }}
platforms: ${{ matrix.image.platform }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

Expand Down Expand Up @@ -187,6 +192,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v4
with:
name: snapshot-master
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/verify-templating.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docker-ruby"]
path = docker-ruby
url = https://github.com/docker-library/ruby.git
141 changes: 0 additions & 141 deletions 3.1/alpine3.20/Dockerfile

This file was deleted.

Loading

0 comments on commit b5d3b2e

Please sign in to comment.