Skip to content

Commit

Permalink
Merge pull request #15 from haskell-actions/prebuild
Browse files Browse the repository at this point in the history
Use prebuilt Docker images.
  • Loading branch information
chungyc authored Apr 6, 2023
2 parents f4f1ed1 + 8d4e725 commit a54c239
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=ref,event=branch
type=ref,event=pr
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ outputs:

runs:
using: docker
image: Dockerfile
image: docker://ghcr.io/haskell-actions/hlint-scan:main
args:
- binary=${{ inputs.binary }}
- path=${{ inputs.path }}
Expand Down
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ the [Haskell Package Versioning Policy].

## Unreleased

## 0.3.0 - ????-??-??

## 0.2.0.0 - 2023-04-06

* Rewrite using a Docker container action using Haskell.
Expand Down
11 changes: 11 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ Guidelines](https://opensource.google/conduct/).
All submissions, including submissions by project members, require review. We
use [GitHub pull requests](https://docs.github.com/articles/about-pull-requests)
for this purpose.

### Updating versions

When updating the version, these files should be updated accordingly:

* [`CHANGELOG.md`](../docs/CHANGELOG.md)
* [`package.yaml`](../package.yaml)

Once that is done, a new [release] should be done with the new version number.

[release]: https://github.com/haskell-actions/hlint-scan/releases
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

name: hlint-scan
version: 0.0.0.0
version: 0.3.0
github: "haskell-actions/hlint-scan"
license: Apache-2.0
author: "Yoo Chung"
Expand Down

0 comments on commit a54c239

Please sign in to comment.