From 2cf28d06671e84c4498249bcbf9b2e741d21e21b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Fri, 31 May 2024 09:39:34 +0200 Subject: [PATCH] REMOVE publishimage-fiware.yml --- .github/workflows/publishimage-fiware.yml | 72 ----------------------- 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/publishimage-fiware.yml diff --git a/.github/workflows/publishimage-fiware.yml b/.github/workflows/publishimage-fiware.yml deleted file mode 100644 index 07f10beb01..0000000000 --- a/.github/workflows/publishimage-fiware.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: Publish pre Image from master in FIWARE dockerhub - -# The workflow will push PRE images from master on every merge to the fiware dockerhub organization. The images will be tagged with PRE and the next minor increase on the -# semver(based on the github releases) -# It will NOT produce releases and release images or the 'latest' tag from master. Both (releases and 'latest' tag) rely on the -# dockerhub autobuild feature - - -on: - push: - branches: - - master - -# will produce tags in format fiware/orion:-PRE-, f.e. fiware/orion:2.6.0-PRE-12 -env: - IMAGE_NAME: fiware/orion - IMAGE_TAG_PRE: -PRE-${{ github.run_number }} - -jobs: - deploy-release: - - runs-on: ubuntu-22.04 - if: github.event_name == 'push' - - steps: - - - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Get Latest Release - id: latest_version - uses: abatilo/release-info-action@v1.3.0 - with: - owner: telefonicaid - repo: fiware-orion - - - name: Echo version - run: | - echo "Version ${{ steps.latest_version.outputs.latest_tag }}" - - - name: Increment version - id: increment-semver-minor - env: - LATEST_RELEASE: ${{ steps.latest_version.outputs.latest_tag }} - run: | - version=$LATEST_RELEASE - a=( ${version//./ } ) - ((++a[1])) - a[2]=0 - echo "${a[0]}.${a[1]}.${a[2]}" - version=$(echo "${a[0]}.${a[1]}.${a[2]}") - echo "::set-output name=version::${version}" - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v2 - with: - load: true - tags: | - ${{ env.IMAGE_NAME }}:${{ steps.increment-semver-minor.outputs.version }}${{ env.IMAGE_TAG_PRE }} - file: docker/Dockerfile - - - name: Push - run: docker push ${{ env.IMAGE_NAME }}:${{ steps.increment-semver-minor.outputs.version }}${{ env.IMAGE_TAG_PRE }}