简体   繁体   English

在存储库中未检测到 GitHub 操作工作流

[英]No GitHub Actions workflows detected in repository

I am trying to build and push a docker image to Amazon ECR with GitHub Actions by following this tutorial我正在尝试按照本教程使用 GitHub 操作构建 docker 映像并将其推送到 Amazon ECR

I'm trying to set up GitHub Actions for this repo , so I've created a new workflow in the .github/workflows directory.我正在尝试为此repo设置 GitHub Actions,因此我在.github/workflows目录中创建了一个新工作.github/workflows

The DockerFile is successfully created and build. DockerFile已成功创建和构建。

在此处输入图片说明

在此处输入图片说明

Now, after creating build.yml and committing it into the master branch ,when I go to the "Actions" tab in the repository no workflows are shown.现在,在创建build.yml并将其提交到master分支后,当我转到存储库中的"Actions"选项卡时,没有显示任何工作流。

在此处输入图片说明

I'm thinking that probably there is an issue in the .yml file but no error is visible.我在想.yml file中可能存在问题,但没有显示错误。

Does anyone have an idea what's wrong?有谁知道出了什么问题?

  push:
    paths:
    - app/**

How about removing this line?去掉这条线怎么样? I see you don't have app/ directory.我看到你没有app/目录。 See more in detail: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#excluding-paths查看更多详细信息: https : //help.github.com/en/actions/reference/workflow-syntax-for-github-actions#exclusive-paths

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM