Skip to content

Commit

Permalink
Build out initial release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
sosheskaz committed Apr 20, 2024
1 parent 9169577 commit c5127df
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Perform a release

on: [workflow_dispatch] # yamllint disable-line rule:truthy
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- id: version
name: Get version string
run: echo "::set-output name=VERSION::v$(date +'+%Y.%m.%d').${{ github.run_number }}"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.version.outputs.VERSION }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: true
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "infinitude-src"]
path = infinitude-src
url = https://github.com/nebulous/infinitude
17 changes: 13 additions & 4 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ target "ci" {
context = "docker"
}

target "infinitude" {
pull = true

platforms = ["linux/amd64", "linux/arm64"]

context = "infinitude-src"

tags = [
"docker.io/sosheskaz/infinitude:${VERSION}",
]

}

target "release" {
pull = true

Expand All @@ -23,7 +36,3 @@ target "release" {
// "docker.io/sosheskaz/ha-infinitude:latest"
]
}

target "latest" {
extends = "release"
}
1 change: 1 addition & 0 deletions infinitude-src
Submodule infinitude-src added at 690f68

0 comments on commit c5127df

Please sign in to comment.