Skip to content

Commit

Permalink
Merge pull request #1 from DiniFarb/develop
Browse files Browse the repository at this point in the history
change: to publish script
  • Loading branch information
DiniFarb authored Feb 16, 2024
2 parents 00119c2 + 80d69f0 commit f759ee9
Show file tree
Hide file tree
Showing 34 changed files with 73 additions and 3,289 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/dockerhub-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,5 @@ jobs:
- name: Login to Docker Hub
run: echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

- name: Determine changed Dockerfiles
id: find-dockerfiles
run: |
changed_files=$(git diff --name-only HEAD~1 || git ls-files --exclude='*')
dockerfiles=$(find . -name "Dockerfile" -printf '%P\n')
changed_dockerfiles=""
for file in $dockerfiles; do
if [[ $changed_files == *"$file"* ]]; then
changed_dockerfiles+=" $file"
fi
done
echo "::set-output name=changed_dockerfiles::$changed_dockerfiles"
- name: Build and push Docker images
run: |
for dockerfile in ${{ steps.find-dockerfiles.outputs.changed_dockerfiles }}; do
folder=$(dirname $dockerfile)
docker build -t dinifarb/activemq:"$folder" "$folder"
docker push dinifarb/activemq:"$folder"
done
run: publish.sh
35 changes: 0 additions & 35 deletions 5.16.4/Dockerfile

This file was deleted.

35 changes: 0 additions & 35 deletions 5.16.5/Dockerfile

This file was deleted.

196 changes: 0 additions & 196 deletions 5.16.5/jetty.xml

This file was deleted.

35 changes: 0 additions & 35 deletions 5.16.6/Dockerfile

This file was deleted.

Loading

0 comments on commit f759ee9

Please sign in to comment.