From 44edc5893e54596bf3bdd6634a792af729541890 Mon Sep 17 00:00:00 2001 From: David Dahl Date: Fri, 23 Aug 2024 14:55:06 -0400 Subject: [PATCH] yaml issue --- .github/workflows/push-image.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index 8ca6de7..96d21d5 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -13,8 +13,8 @@ jobs: username: ${{ secrets.GITLAB_USERNAME }} password: ${{ secrets.GITLAB_PASSWORD }} - - - name: Pull Gitlab Image - - run: docker pull registry.gitlab.com/f5/greenhouse/apps/seven-layer-cake-collector/custom_otel_coleector:latest + name: Pull Gitlab Image + run: docker pull registry.gitlab.com/f5/greenhouse/apps/seven-layer-cake-collector/custom_otel_coleector:latest - name: Login to GitHub Container Registry uses: docker/login-action@v3 @@ -23,20 +23,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Push to Github - - run: docker tag registry.gitlab.com/f5/greenhouse/apps/seven-layer-cake-collector/custom_otel_coleector:latest ghcr.io/f5devcentral/application-study-tool/custom_otel_collector:latest - - run: docker push ghcr.io/f5devcentral/application-study-tool/custom_otel_collector:latest - - Explore-GitHub-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + name: Push to Github + run: docker tag registry.gitlab.com/f5/greenhouse/apps/seven-layer-cake-collector/custom_otel_coleector:latest ghcr.io/f5devcentral/application-study-tool/custom_otel_collector:latest + run: docker push ghcr.io/f5devcentral/application-study-tool/custom_otel_collector:latest