-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
024e125
commit 1cd5c13
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
- name: Golang setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '>=1.22.0' | ||
go-version: ">=1.22.0" | ||
# install oci-factory via golang and set path in environment | ||
- name: Install oci-factory | ||
run: | | ||
|
@@ -65,10 +65,8 @@ jobs: | |
go install github.com/mikefarah/yq/[email protected] | ||
echo "OCI_FACTORY=$(go env GOPATH)/bin/oci-factory" >> $GITHUB_ENV | ||
echo "YQ=$(go env GOPATH)/bin/yq" >> $GITHUB_ENV | ||
env: | ||
GO111MODULE: "on" | ||
- name: Set EOLs and version | ||
# special case for hydra due to the canonical fork | ||
# special case for hydra due to the canonical fork | ||
run: | | ||
echo EOL_STABLE=$(date -d "$(date +'%Y-%m-%d') +3 month" "+%Y-%m-%d") >> $GITHUB_ENV | ||
echo IMAGE_VERSION_STABLE=$($YQ '.version | split(".").0' rockcraft.yaml) >> $GITHUB_ENV | ||
|
@@ -77,4 +75,4 @@ jobs: | |
run: | | ||
$OCI_FACTORY upload -y --release track=$IMAGE_VERSION_STABLE$IMAGE_CANONICAL-22.04,risks=stable,eol=$EOL_STABLE | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.token }} | ||
GITHUB_TOKEN: ${{ secrets.token }} |