Skip to content

Commit ada76d5

Browse files
Move pushing latest image from build test workflow to automated release workflow (#1434)
1 parent 7b323ba commit ada76d5

File tree

3 files changed

+2
-66
lines changed

3 files changed

+2
-66
lines changed

.github/workflows/automated-release-workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ jobs:
8787
- name: Promote RC Image to Release
8888
run: |
8989
docker tag splunk/splunk-operator-rc:${{ github.event.inputs.release_version }}-RC splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
90+
docker tag splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }} splunk/splunk-operator:latest
9091
9192
- name: Push Release Image
9293
run: |
9394
docker push splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
95+
docker push splunk/splunk-operator:latest
9496
9597
- name: Sign Splunk Operator image with a key
9698
run: |

.github/workflows/build-test-push-workflow.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -303,36 +303,3 @@ jobs:
303303
# name: Integration Tests # Name of the check run which will be created
304304
# path: inttest-*.xml # Path to test results
305305
# reporter: jest-junit # Format of test results
306-
push-latest:
307-
needs: smoke-tests
308-
if: github.ref == 'refs/heads/main'
309-
runs-on: ubuntu-latest
310-
env:
311-
SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator
312-
TAG: latest
313-
steps:
314-
- name: Checkout Code
315-
uses: actions/checkout@v2
316-
- name: Dotenv Action
317-
id: dotenv
318-
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
319-
- name: Set up Docker Buildx
320-
uses: docker/[email protected]
321-
- name: Configure Docker Hub credentials
322-
uses: docker/login-action@v1
323-
with:
324-
username: ${{ secrets.DOCKERHUB_USERNAME }}
325-
password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}}
326-
- name: Configure AWS credentials
327-
uses: aws-actions/configure-aws-credentials@v1
328-
with:
329-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
330-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
331-
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
332-
- name: Login to Amazon ECR
333-
uses: aws-actions/amazon-ecr-login@v1
334-
- name: Re-tag Splunk Operator Image
335-
run: |
336-
docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }}
337-
- name: Push Splunk Operator Image to Docker Hub
338-
run: docker push ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }}

.github/workflows/distroless-build-test-push-workflow.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -301,36 +301,3 @@ jobs:
301301
# name: Integration Tests # Name of the check run which will be created
302302
# path: inttest-*.xml # Path to test results
303303
# reporter: jest-junit # Format of test results
304-
push-latest:
305-
needs: smoke-tests
306-
if: github.ref == 'refs/heads/main'
307-
runs-on: ubuntu-latest
308-
env:
309-
SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator
310-
TAG: latest
311-
steps:
312-
- name: Checkout Code
313-
uses: actions/checkout@v2
314-
- name: Dotenv Action
315-
id: dotenv
316-
uses: falti/dotenv-action@d4d12eaa0e1dd06d5bdc3d7af3bf4c8c93cb5359
317-
- name: Set up Docker Buildx
318-
uses: docker/[email protected]
319-
- name: Configure Docker Hub credentials
320-
uses: docker/login-action@v1
321-
with:
322-
username: ${{ secrets.DOCKERHUB_USERNAME }}
323-
password: ${{ secrets.DOCKERHUB_PUSH_TOKEN}}
324-
- name: Configure AWS credentials
325-
uses: aws-actions/configure-aws-credentials@v1
326-
with:
327-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
328-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
329-
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
330-
- name: Login to Amazon ECR
331-
uses: aws-actions/amazon-ecr-login@v1
332-
- name: Re-tag Splunk Operator Image
333-
run: |
334-
docker tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA-distroless ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }}-distroless
335-
- name: Push Splunk Operator Image to Docker Hub
336-
run: docker push ${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:${{ env.TAG }}

0 commit comments

Comments
 (0)