Skip to content

Update environment variables and login credentials #10

Update environment variables and login credentials

Update environment variables and login credentials #10

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 }}
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: env
run: env
- 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: bash ci/push-docker.sh