Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix image tag #829

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/nightly-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Set image tag
run: echo "TAG=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
run: echo "TAG=v0.0.0-$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- name: Build and push image
env:
REPO: ghcr.io/rancher
Expand All @@ -51,17 +51,16 @@ jobs:
uses: azure/setup-helm@v4
with:
version: 3.8.0
- name: Set image tag
run: echo "TAG=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- name: Set image tag and chart version
run: |
echo "TAG=v0.0.0-$(date +'%Y%m%d')" >> "$GITHUB_ENV"
echo "CHART_VERSION=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- name: Build charts
env:
REPO: ghcr.io/rancher # used in the Helm chart values.yaml
CHART_VERSION: ${{ env.TAG }} # chart version matches image tag
run: |
make charts
- name: Push charts
env:
CHART_VERSION: ${{ env.TAG }} # chart version matches image tag
run: |
helm push bin/rancher-aks-operator-$CHART_VERSION.tgz oci://ghcr.io/${{ github.repository_owner }}/rancher-aks-operator-chart
helm push bin/rancher-aks-operator-crd-$CHART_VERSION.tgz oci://ghcr.io/${{ github.repository_owner }}/rancher-aks-operator-crd-chart
Loading