Skip to content

Commit a54c239

Browse files
authored
Merge pull request #15 from haskell-actions/prebuild
Use prebuilt Docker images.
2 parents f4f1ed1 + 8d4e725 commit a54c239

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ jobs:
3939
username: ${{ github.actor }}
4040
password: ${{ secrets.GITHUB_TOKEN }}
4141

42-
- name: Extract metadata (tags, labels) for Docker
42+
- name: Extract metadata
4343
id: meta
4444
uses: docker/metadata-action@v4
4545
with:
4646
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
47+
tags: |
48+
type=semver,pattern=v{{version}}
49+
type=semver,pattern=v{{major}}.{{minor}}
50+
type=semver,pattern=v{{major}}
51+
type=ref,event=branch
52+
type=ref,event=pr
4753
4854
- name: Build and push Docker image
4955
uses: docker/build-push-action@v4

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ outputs:
3838

3939
runs:
4040
using: docker
41-
image: Dockerfile
41+
image: docker://ghcr.io/haskell-actions/hlint-scan:main
4242
args:
4343
- binary=${{ inputs.binary }}
4444
- path=${{ inputs.path }}

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ the [Haskell Package Versioning Policy].
1010

1111
## Unreleased
1212

13+
## 0.3.0 - ????-??-??
14+
1315
## 0.2.0.0 - 2023-04-06
1416

1517
* Rewrite using a Docker container action using Haskell.

docs/CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,14 @@ Guidelines](https://opensource.google/conduct/).
3030
All submissions, including submissions by project members, require review. We
3131
use [GitHub pull requests](https://docs.github.com/articles/about-pull-requests)
3232
for this purpose.
33+
34+
### Updating versions
35+
36+
When updating the version, these files should be updated accordingly:
37+
38+
* [`CHANGELOG.md`](../docs/CHANGELOG.md)
39+
* [`package.yaml`](../package.yaml)
40+
41+
Once that is done, a new [release] should be done with the new version number.
42+
43+
[release]: https://github.com/haskell-actions/hlint-scan/releases

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
name: hlint-scan
16-
version: 0.0.0.0
16+
version: 0.3.0
1717
github: "haskell-actions/hlint-scan"
1818
license: Apache-2.0
1919
author: "Yoo Chung"

0 commit comments

Comments
 (0)