Skip to content

Commit

Permalink
Finishing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
evozniak committed Oct 2, 2023
1 parent b4cc192 commit a1b3f3c
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,53 +91,3 @@ jobs:
context: ${{ github.workspace }}
push: false
tags: docker.eu1.hsdp.io/reporting:${{ github.run_id }}

Bump-version:
runs-on: ubuntu-22.04
name: Bumping the version
needs: [Build]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Bump version
id: bump-version
shell: bash
run: |
pip3 install --root-user-action=ignore --upgrade bumpversion
sudo apt-get update && sudo apt-get install -y xmlstarlet --no-install-recommends
bumpversion patch
version=`cat VERSION`
echo "VERSION=$version" >> "$GITHUB_ENV"
echo "VERSION=$version" >> "$GITHUB_OUTPUT"
- name: Commit
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
add: .bumpversion.cfg VERSION
message: "[no ci] Bump version."

Publish:
runs-on: ubuntu-22.04
name: Publish to docker repository
needs: [Bump-version]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Docker login
run: |
docker login --username '${{ secrets.DOCKER_USER }}' --password '${{ secrets.DOCKER_PSWD }}' '${{ secrets.DOCKER_REPO }}'
- name: Publish Docker image
uses: docker/build-push-action@v4
with:
context: ${{ github.workspace }}
push: true
tags: docker.eu1.hsdp.io/reporting:${{ needs.Bump-version.outputs }}

0 comments on commit a1b3f3c

Please sign in to comment.