Skip to content

[5.13] Bump version to 5.13.1 #3198

[5.13] Bump version to 5.13.1

[5.13] Bump version to 5.13.1 #3198

Workflow file for this run

name: Testing flows
on: [push, pull_request]
jobs:
auto-update:
runs-on: ubuntu-latest
timeout-minutes: 90
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.19"
- name: Get Current Date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Prepare Tags
id: prep
run: |
DOCKER_OPERATOR_IMAGE=noobaa/noobaa-operator
VERSION="${{ steps.date.outputs.date }}"
echo "::warning ${VERSION}"
echo ::set-output name=version::${VERSION}
OPERATOR_TAGS="${DOCKER_OPERATOR_IMAGE}:master-${VERSION}"
echo "::warning ${CORE_TAGS}"
echo ::set-output name=operatortags::${OPERATOR_TAGS}
- name: Update Core Release
id: update-release
run: |
# docker pull "noobaa/noobaa-core:master-${{ steps.prep.outputs.version }}"
docker pull "noobaa/noobaa-core:master-20201130"
echo "::found version ${{ steps.prep.outputs.version }}, updating image version"
# Update local files
sed -i 's:ContainerImageTag =.*:ContainerImageTag = master-${{ steps.prep.outputs.version }}:' pkg/options/options.go
cat pkg/options/options.go
#commit
# git config --local user.email "[email protected]"
# git config --local user.name "GitHub Action"
# git commit -m "Auto update core image" -a
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}