Skip to content

Commit

Permalink
Fixing bug in docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
spamoom committed May 13, 2020
1 parent 7c737c1 commit 5015fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Checkout code
uses: actions/checkout@v2

Expand All @@ -29,7 +32,7 @@ jobs:
run: "composer install ${{ env.COMPOSER_FLAGS }}"

- name: Build Release
run: php netsells app:build --build-version=${{ github.ref }}
run: php netsells app:build --build-version=${{ steps.get_version.outputs.VERSION }}

- name: Create Release
id: create_release
Expand Down
2 changes: 1 addition & 1 deletion app/Commands/DockerBuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function handle()
return 1;
}

$tag = trim($this->option('tag') ?: $this->git->currentSha());
$tag = trim($this->option('tag') ?: $this->helpers->git()->currentSha());
$services = $this->helpers->console()->handleOverridesAndFallbacks(
$this->option('service'),
NetsellsFile::DOCKER_SERVICES,
Expand Down

0 comments on commit 5015fa4

Please sign in to comment.