Skip to content

fix Makefile to add targets #9

fix Makefile to add targets

fix Makefile to add targets #9

Workflow file for this run

name: build-image
on:
push:
env:
CI: true
APP_IMAGE_NAME: ilyaguev/docker-project-74:latest
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Run tests
run: make compose-test-ci
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build App
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile.production
cache-from: type=registry,ref=${{ env.APP_IMAGE_NAME }}
cache-to: type=inline
push: true
tags: ${{ env.APP_IMAGE_NAME }}