Skip to content

Commit

Permalink
fix action flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hain committed Aug 24, 2024
1 parent 224242f commit 8fb45db
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Push Image to ghcr.io
run-name: ${{ github.actor }} is running this workflow
on: [push]
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
Pull-From_Gitlab:
runs-on: ubuntu-latest
Expand All @@ -11,6 +14,10 @@ jobs:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_USERNAME }}
password: ${{ secrets.GITLAB_PASSWORD }}
- name: Set variables
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Pull Gitlab Image
run: docker pull registry.gitlab.com/f5/greenhouse/apps/seven-layer-cake-collector/otel_custom_collector:${{ env.VERSION }}
- name: Login to GitHub Container Registry
Expand All @@ -19,10 +26,6 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set variables
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Push to Github
run:
|
Expand Down

0 comments on commit 8fb45db

Please sign in to comment.