# Tagged vs untagged build configuration woes

**URL:** <https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154>\
**Category:** Bug Reports\
**Tags:** latex, circle-yml, configuration\
**Created:** [August 20, 2020, 7:55pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154 "2020-08-20T19:55:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [August 20, 2020, 7:55pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/1 "2020-08-20T19:55:52Z")

</div>

Here’s my workflow:

```
# ____________
# __/ Workflows \_______________________________________________________________
workflows:
  version: 2
  untaggedd:
    jobs:
      - latex:
          filters:
            tags:
              ignore: /.*/
  tagged:
    jobs:
      - latex:
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/
      - publish-tag:
          requires:
            - latex
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/

```

I am expecting that if I have a tag, **only the tagged** workflow is executed.

What is happening is:

1. Both of the workflows (tagged and untagged) are executed: _Why?_

2. The tagged workflow fails with:

That is mighty strange as it is the _exact same workflow that works fine in the untagged build_: same code.

I am utterly baffled: _what am I doing wrong here?_

---

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [August 20, 2020, 7:57pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/2 "2020-08-20T19:57:41Z")

</div>

This is the job that fails in tagged but works fine in untagged as defined above.

```
  # ____________
  # __/ Job: build \_____________________________________________________________
  latex:
    docker:
      - image: ubuntu:latest
    steps:
      - attach_workspace:
          at: ~/
      - checkout
      - run:
          name: Install LaTeX
          command: |
            DEBIAN_FRONTEND=noninteractive apt-get update -y
            DEBIAN_FRONTEND=noninteractive apt-get install -y \
              texlive-full texlive-latex-extra make graphviz
      - run:
          name: LaTeX build via make.
          command: |
            cp ~/project/.circleci/latexmkrc ~/.latexmkrc
            make
      - store_artifacts:
          path: ~/project/build/
      - persist_to_workspace:
          root: ~/
          paths:
            - ./project/
```

---

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [August 21, 2020, 8:40am UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/3 "2020-08-21T08:40:17Z")

</div>

Anyone? … ☹

---

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [August 21, 2020, 11:14am UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/4 "2020-08-21T11:14:18Z")

</div>

I fixed that. Apparently `OpenSSH` and `git` are not necessarily pre-loaded. Fine. I added a step to install those. It is working.

_The rest is still not working: on a tag, I get a tagged and untagged builds starting._

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [August 21, 2020, 4:16pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/5 "2020-08-21T16:16:10Z")

</div>

Hi @yanngolanski! You haven’t mentioned what you’re pushing. Your `untagged` workflow’s job is configured to ignore all tags, but it’ll run in response to anything else you push. It might be helpful to know what git operations you’re running.

---

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [August 21, 2020, 4:20pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/6 "2020-08-21T16:20:16Z")

</div>

Thank you @thekatertot, I tend to do things like this:

```
git add .circleci/config.yml 
git commit -m 'CircleCI publish 4'
git tag -a 'test' -m 'Testing CircleCI.'
git push --tag
git push
```

---

<div class="post-metadata">

**Author:** ![thekatertot](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/thekatertot/32/25169_2.png) [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Post date:** [August 21, 2020, 6:17pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/8 "2020-08-21T18:17:52Z")

</div>

Based on what you’ve provided this is some strange behavior. We’re going to have to investigate a little deeper.

If you haven’t already, would you mind opening [a support ticket](https://support.circleci.com/hc/en-us/requests/new)? You can link to this thread. Support can dig into your actual account and workflows to better understand what’s going on. We’d really appreciate it!

---

<div class="post-metadata">

**Author:** ![stig](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/stig/32/25107_2.png) [@stig](https://discuss.circleci.com/u/stig)\
**Post date:** [February 2, 2021, 3:00pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/9 "2021-02-02T15:00:35Z")

</div>

Hi @yanngolanski,

It looks like you have been caught out by the slight disconnect between `branch` and `tag` filters: if there are no branch filters, they will all build, while `tags` require explicit inclusion to build. See more at [Configuring CircleCI - CircleCI](https://circleci.com/docs/2.0/configuration-reference/#branches-1)

Hope this helps,

Stig

---

<div class="post-metadata">

**Author:** ![yanngolanski](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/yanngolanski/32/28281_2.png) [@yanngolanski](https://discuss.circleci.com/u/yanngolanski)\
**Post date:** [February 9, 2021, 3:48pm UTC](https://discuss.circleci.com/t/tagged-vs-untagged-build-configuration-woes/37154/10 "2021-02-09T15:48:37Z")

</div>

Thank you!
