Fix trunk issue #41
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: Docker images build | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: DockerHub login | |
env: | |
LOGIN: ${{ secrets.DOCKERHUB_USERNAME }} | |
PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
run: echo $PASSWORD | docker login -u $LOGIN --password-stdin | |
- name: Install docker compose | |
run: sudo apt-get update; sudo apt-get install docker-compose -y | |
- name: Build project | |
run: docker-compose build --parallel | |
working-directory: ./ | |
- name: Push image | |
run: docker-compose push | |
working-directory: ./ |