Skip to content

Commit

Permalink
Move source directories into src
Browse files Browse the repository at this point in the history
  • Loading branch information
a2ikm committed Sep 27, 2024
1 parent fd7e14e commit fe4a30f
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,12 @@ on:
pull_request:
paths:
- .github/workflows/ci.yaml
- 4.0/**
- 4.2/**
- 4.4/**
- 5.0/**
- 6.0/**
- 7.0/**
- src/**
- test/**
push:
paths:
- .github/workflows/ci.yaml
- 4.0/**
- 4.2/**
- 4.4/**
- 5.0/**
- 6.0/**
- 7.0/**
- src/**
- test/**
branches:
- main
Expand All @@ -42,7 +32,7 @@ jobs:
id: versions
run: |
require "json"
versions = Dir["*"].grep(/^\d+\.\d+$/)
versions = Dir["src/*"].map { |path| File.basename(path) }
puts "::set-output name=value::#{versions.to_json}"
shell: ruby {0}

Expand All @@ -61,7 +51,7 @@ jobs:
- uses: docker/setup-buildx-action@v2
- uses: docker/build-push-action@v3
with:
context: ./${{ matrix.version }}
context: ./src/${{ matrix.version }}
load: true
tags: |
a2ikm/sharded-mongo:${{ matrix.version }}-test
Expand Down Expand Up @@ -116,7 +106,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: ./${{ matrix.version }}
context: ./src/${{ matrix.version }}
push: true
tags: ${{ steps.tags.outputs.value }}
build-args: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MONGO_VERSION ?= 7.0

.PHONY: test
test:
docker build ./$(MONGO_VERSION) \
docker build ./src/$(MONGO_VERSION) \
--tag a2ikm/sharded-mongo:$(MONGO_VERSION)-test
docker run \
--rm \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fe4a30f

Please sign in to comment.