Update workflows and documentation #7
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: Main workflow | |
on: push | |
env: # Set the secret as an input | |
docker_username: ${{ github.actor }} | |
docker_password: ${{ secrets.GITHUB_TOKEN }} | |
GIT_COMMIT: ${{ github.sha }} | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
container: gradle:6-jdk11 | |
steps: | |
- name: Clone down repository | |
uses: actions/checkout@v4 | |
- name: Build application | |
run: ci/build-app.sh | |
- name: Test | |
run: ci/unit-test-app.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: code | |
path: . | |
Docker-image: | |
runs-on: ubuntu-latest | |
needs: [Build] | |
permissions: | |
packages: write | |
steps: | |
- name: Download code | |
uses: actions/download-artifact@v4 | |
with: | |
name: code | |
path: . | |
- name: ls | |
run: ls -la ci | |
- name: build docker | |
run: bash ci/build-docker.sh | |
- name: push docker | |
run: ci/push-docker.sh |