Skip to content

Commit

Permalink
ci: use oci-factory@latest
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer authored Oct 24, 2024
1 parent 654c64f commit d2b2eb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ jobs:
- name: Install oci-factory
run: |
sudo apt update && sudo apt install -y golang-go git
go install github.com/canonical/oci-factory/tools/cli-client/cmd/oci-factory@2cc4d8153a31306cf728482bf4f5d82624aafb51
GO111MODULE=on go install github.com/mikefarah/yq/[email protected]
go install github.com/canonical/oci-factory/tools/cli-client/cmd/oci-factory@latest
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
run: |
echo EOL_STABLE=$(date -d "$(date +'%Y-%m-%d') +6 month" +%Y-%m-%d") >> $GITHUB_ENV
Expand All @@ -88,4 +90,4 @@ jobs:
$OCI_FACTORY upload -y --release track=$IMAGE_VERSION_STABLE-22.04,risk=stable,eol=$EOL_STABLE
$OCI_FACTORY upload -y --release track=$IMAGE_VERSION_CANDIDATE-22.04,risk=candidate,edge,eol=$EOL_CANDIDATE
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}

0 comments on commit d2b2eb9

Please sign in to comment.