adding 1 sec wait for overdue called feature (#32) #244
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Artefacts | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'zulu' | |
cache: 'maven' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{secrets.DOCKERHUB_SIMPLEDOTORG_USERNAME}} | |
password: ${{secrets.DOCKERHUB_SIMPLEDOTORG_ACCESS_TOCKEN}} | |
- uses: stCarolas/setup-maven@v4.5 | |
with: | |
maven-version: 3.9.6 | |
- name: docker-compose workaround | |
run: echo "docker compose \"\$@\"" > $HOME/docker-compose ; chmod 777 $HOME/docker-compose ; echo "$HOME/" >> $GITHUB_PATH | |
- name: Clean branch name | |
run: | | |
BRANCH_NAME=${{ github.ref_name }} | |
CLEAN_BRANCH_NAME=$(echo $BRANCH_NAME | sed 's/[\/_]/-/g') | |
echo "Cleaned branch name: $CLEAN_BRANCH_NAME" | |
echo CLEAN_BRANCH_NAME=$CLEAN_BRANCH_NAME >> $GITHUB_ENV | |
- name: Sets up version | |
run: mvn versions:set -DnewVersion=${{ env.CLEAN_BRANCH_NAME }}.${{github.run_number}} | |
- name: Builds Artifacts and Images | |
run: mvn clean install | |
- name: Publish Images | |
run: docker push simpledotorg/prometheusdbexporter:${{ env.CLEAN_BRANCH_NAME }}.${{github.run_number}} | |
- name: Archive Dhis2TestTool jar file | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Dhis2Verifier-${{ env.CLEAN_BRANCH_NAME }}.${{github.run_number}}.jar | |
path: CommonUtils/Dhis2Verifier/target/Dhis2Verifier-${{ env.CLEAN_BRANCH_NAME }}.${{github.run_number}}.jar |