Skip to content

Update GitHub Actions workflow and Docker build scripts #8

Update GitHub Actions workflow and Docker build scripts

Update GitHub Actions workflow and Docker build scripts #8

Workflow file for this run

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 }} ::8"
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
- name: ls
run: ls -la ci
- 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