Merge pull request #1455 from achouhan09/proxy-fix #568
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
name: Testing flows | |
on: [push, pull_request, workflow_dispatch] | |
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@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Get Current Date | |
id: date | |
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT | |
- name: Prepare Tags | |
id: prep | |
run: | | |
DOCKER_OPERATOR_IMAGE=noobaa/noobaa-operator | |
VERSION="${{ steps.date.outputs.date }}" | |
echo "::warning ${VERSION}" | |
echo "version=${VERSION}" >> $GITHUB_OUTPUT | |
OPERATOR_TAGS="${DOCKER_OPERATOR_IMAGE}:master-${VERSION}" | |
echo "::warning ${CORE_TAGS}" | |
echo "operatortags=${OPERATOR_TAGS}" >> $GITHUB_OUTPUT | |
- 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 }} |