Skip to content

yaml issue

yaml issue #4

Workflow file for this run

name: Push Image to ghcr.io
run-name: ${{ github.actor }} is running this workflow
on: [push]

Check failure on line 3 in .github/workflows/push-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/push-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
environment:
name: actions-env-1
jobs:
Pull-From_Gitlab:
runs-on: ubuntu-latest
steps:
-
name: Login to GitLab
uses: docker/login-action@v3
with:
registry: registry.gitlab.com
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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
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
docker push ghcr.io/f5devcentral/application-study-tool/custom_otel_collector:latest