Skip to content

Commit

Permalink
Cleanup - removing the push to dev job
Browse files Browse the repository at this point in the history
We don't need to push to the staging area since this is running on a
schedule and no PRs will be made on this runner.
  • Loading branch information
Dmitry-Popovichev committed Oct 4, 2024
1 parent 1991246 commit 1350649
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@v2
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@v3
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 1350649

Please sign in to comment.