Skip to content

Commit

Permalink
Fixed docker releases (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmetDenis authored Jul 29, 2022
1 parent 3fddfc4 commit 98837b0
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 198 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ jobs:
php-version: [ 7.4, 8.0, 8.1 ]
build-way: [ "update" ]
composer_flags: [ "--prefer-lowest", "" ]
include:
- php-version: 8.0
build-way: update
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# JBZoo Toolbox - CI-Report-Converter
#
# This file is part of the JBZoo Toolbox project.
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @package CI-Report-Converter
# @license MIT
# @copyright Copyright (C) JBZoo.com, All rights reserved.
# @link https://github.com/JBZoo/CI-Report-Converter
#

name: Publish Docker Image

on:
release:
types: [ published ]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: jbzoo/ci-report-converter:latest
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ ifneq (, $(wildcard ./vendor/jbzoo/codestyle/src/init.Makefile))
include ./vendor/jbzoo/codestyle/src/init.Makefile
endif

BOX_PHAR = https://github.com/box-project/box/releases/download/3.16.0/box.phar

build: ##@Project Install all 3rd party dependencies
$(call title,"Install/Update all 3rd party dependencies")
@composer install --optimize-autoloader --no-progress
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
},

"require-dev" : {
"jbzoo/toolbox-dev" : "^4.0.1",
"jbzoo/toolbox-dev" : "^4.1.0",
"roave/security-advisories" : "dev-master"
},

Expand Down
Loading

0 comments on commit 98837b0

Please sign in to comment.