mirror of
https://github.com/Dannecron/coverage-merger.git
synced 2025-12-26 00:02:35 +03:00
ci: fix build command
This commit is contained in:
68
.github/workflows/ci.yml
vendored
68
.github/workflows/ci.yml
vendored
@@ -50,34 +50,6 @@ jobs:
|
|||||||
- name: Run phpstan
|
- name: Run phpstan
|
||||||
run: vendor/bin/phpstan analyse src tests
|
run: vendor/bin/phpstan analyse src tests
|
||||||
|
|
||||||
build-tag:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
|
||||||
needs:
|
|
||||||
- tests
|
|
||||||
- lint
|
|
||||||
- analyze
|
|
||||||
steps:
|
|
||||||
- name: Check out repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Build docker image
|
|
||||||
run: >-
|
|
||||||
DOCKER_BUILDKIT=1 docker build
|
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1
|
|
||||||
--build-arg PHP_VERSION=${{ env.DOCKER_RUNTIME_PHP_VERSION }}
|
|
||||||
--build-arg COMPOSER_VERSION=${{ env.DOCKER_RUNTIME_COMPOSER_VERSION }}
|
|
||||||
--tag=dannecron/coverage-merger:latest
|
|
||||||
--file=./.github/Dockerfile .
|
|
||||||
- name: Login to docker hub
|
|
||||||
uses: actions-hub/docker/login@master
|
|
||||||
env:
|
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
- name: Push docker image to docker-hub
|
|
||||||
uses: actions-hub/docker@master
|
|
||||||
with:
|
|
||||||
args: push dannecron/coverage-merger:${{ github.ref_name }}
|
|
||||||
|
|
||||||
build-main:
|
build-main:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
@@ -89,12 +61,12 @@ jobs:
|
|||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
run: >-
|
run: |
|
||||||
DOCKER_BUILDKIT=1 docker build
|
DOCKER_BUILDKIT=1 docker build \
|
||||||
--build-arg BUILDKIT_INLINE_CACHE=1
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
--build-arg PHP_VERSION=${{ env.DOCKER_RUNTIME_PHP_VERSION }}
|
--build-arg PHP_VERSION=${{ env.DOCKER_RUNTIME_PHP_VERSION }} \
|
||||||
--build-arg COMPOSER_VERSION=${{ env.DOCKER_RUNTIME_COMPOSER_VERSION }}
|
--build-arg COMPOSER_VERSION=${{ env.DOCKER_RUNTIME_COMPOSER_VERSION }} \
|
||||||
--tag=dannecron/coverage-merger:latest
|
--tag=dannecron/coverage-merger:latest \
|
||||||
--file=./.github/Dockerfile .
|
--file=./.github/Dockerfile .
|
||||||
- name: Login to docker hub
|
- name: Login to docker hub
|
||||||
uses: actions-hub/docker/login@master
|
uses: actions-hub/docker/login@master
|
||||||
@@ -105,3 +77,31 @@ jobs:
|
|||||||
uses: actions-hub/docker@master
|
uses: actions-hub/docker@master
|
||||||
with:
|
with:
|
||||||
args: push dannecron/coverage-merger:latest
|
args: push dannecron/coverage-merger:latest
|
||||||
|
|
||||||
|
build-tag:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
|
||||||
|
needs:
|
||||||
|
- tests
|
||||||
|
- lint
|
||||||
|
- analyze
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Build docker image
|
||||||
|
run: |
|
||||||
|
DOCKER_BUILDKIT=1 docker build \
|
||||||
|
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||||
|
--build-arg PHP_VERSION=${{ env.DOCKER_RUNTIME_PHP_VERSION }} \
|
||||||
|
--build-arg COMPOSER_VERSION=${{ env.DOCKER_RUNTIME_COMPOSER_VERSION }} \
|
||||||
|
--tag=dannecron/coverage-merger:latest \
|
||||||
|
--file=./.github/Dockerfile .
|
||||||
|
- name: Login to docker hub
|
||||||
|
uses: actions-hub/docker/login@master
|
||||||
|
env:
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: Push docker image to docker-hub
|
||||||
|
uses: actions-hub/docker@master
|
||||||
|
with:
|
||||||
|
args: push dannecron/coverage-merger:${{ github.ref_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user