Skip to content

Commit

Permalink
Merge pull request #181 from Dmitry-Popovichev/master
Browse files Browse the repository at this point in the history
Cleanup - removing the push to dev job on the Rabbit Consumer Schedule workflow
  • Loading branch information
DavidFair authored Oct 7, 2024
2 parents 9de6966 + d3f9454 commit 94efa68
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/rabbit_consumer_schedule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Rabbit Consumer Schedule

# Incrementing the patch version on a schedule to pull latest containers dependencies.


on:
schedule:
- cron: "12 10 * * TUE" # Every Tuesday at 10.12am
Expand Down Expand Up @@ -41,38 +40,6 @@ jobs:
run: |
cd OpenStack-Rabbit-Consumer && python -m coverage xml
push_dev_image_harbor:
runs-on: ubuntu-latest
needs: test_and_lint
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: harbor.stfc.ac.uk
username: ${{ secrets.HARBOR_USERNAME }}
password: ${{ secrets.HARBOR_TOKEN }}

- name: Set commit SHA for later
id: commit_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Build and push to staging project
uses: docker/build-push-action@v6
with:
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
context: "{{defaultContext}}:OpenStack-Rabbit-Consumer"
tags: "harbor.stfc.ac.uk/stfc-cloud-staging/openstack-rabbit-consumer:${{ steps.commit_sha.outputs.sha_short }}"

- name: Inform of tagged name
run: echo "Image published to harbor.stfc.ac.uk/stfc-cloud-staging/openstack-rabbit-consumer:${{ steps.commit_sha.outputs.sha_short }}"

push_release_image_harbor:
runs-on: ubuntu-latest
needs: test_and_lint
Expand Down

0 comments on commit 94efa68

Please sign in to comment.