docker hub publish on master using dev tag #36

Closed
opened 2023-06-15 05:10:22 +00:00 by jon_nfc · 14 comments
jon_nfc commented 2023-06-15 05:10:22 +00:00 (Migrated from gitlab.com)

the following patch needs to be applied to fix

docker-publish job

  script:
    - docker login docker.io -u $NFC_DOCKERHUB_USERNAME -p $NFC_DOCKERHUB_TOKEN
    - docker image ls
    - |
      DOCKER_HUB_TAG=dev

-      if [ "0$CI_COMMIT_TAG" != "0" ]; then

-        DOCKER_HUB_TAG=latest


-        if [[ "0$CI_COMMIT_TAG" == *"rc"* ]]; then

-          DOCKER_HUB_TAG=dev

-        fi

-      fi
+      if [ "0$CI_COMMIT_BRANCH" == "0master" ]; then

+        DOCKER_HUB_TAG=latest

+      fi

the following patch needs to be applied to fix docker-publish job ``` diff script: - docker login docker.io -u $NFC_DOCKERHUB_USERNAME -p $NFC_DOCKERHUB_TOKEN - docker image ls - | DOCKER_HUB_TAG=dev - if [ "0$CI_COMMIT_TAG" != "0" ]; then - DOCKER_HUB_TAG=latest - if [[ "0$CI_COMMIT_TAG" == *"rc"* ]]; then - DOCKER_HUB_TAG=dev - fi - fi + if [ "0$CI_COMMIT_BRANCH" == "0master" ]; then + DOCKER_HUB_TAG=latest + fi ```
jon_nfc commented 2023-06-15 05:19:56 +00:00 (Migrated from gitlab.com)

mentioned in issue #37

mentioned in issue #37
jon_nfc commented 2023-06-15 05:20:57 +00:00 (Migrated from gitlab.com)

marked this issue as blocking #37

marked this issue as blocking #37
jon_nfc commented 2023-06-15 05:23:03 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/projects/ansible/execution_environment#11

mentioned in issue nofusscomputing/projects/ansible/execution_environment#11
jon_nfc commented 2023-06-15 05:23:16 +00:00 (Migrated from gitlab.com)

marked this issue as blocking nofusscomputing/projects/ansible/execution_environment#11

marked this issue as blocking nofusscomputing/projects/ansible/execution_environment#11
jon_nfc commented 2023-09-02 05:19:07 +00:00 (Migrated from gitlab.com)

assigned to @jon_nfc

assigned to @jon_nfc
jon_nfc commented 2023-09-02 05:20:13 +00:00 (Migrated from gitlab.com)

mentioned in commit fded28742c5da0c258279714243290a48f1cf7e9

mentioned in commit fded28742c5da0c258279714243290a48f1cf7e9
jon_nfc commented 2023-09-02 05:22:21 +00:00 (Migrated from gitlab.com)

For Review

it's unknown if this issue is still of concern. commit fded2874 was added so that additional logging should show if an issue.

# For Review :white_check_mark: it's unknown if this issue is still of concern. commit fded2874 was added so that additional logging should show if an issue.
jon_nfc commented 2023-09-02 05:34:37 +00:00 (Migrated from gitlab.com)

mentioned in commit 0d7974152c

mentioned in commit 0d7974152c26200c8beaa3a1ddecf504f4406ee3
jon_nfc commented 2023-09-02 05:37:18 +00:00 (Migrated from gitlab.com)

mentioned in merge request !68

mentioned in merge request !68
jon_nfc commented 2023-09-02 06:45:13 +00:00 (Migrated from gitlab.com)

mentioned in merge request nofusscomputing/projects/ansible/execution_environment!92

mentioned in merge request nofusscomputing/projects/ansible/execution_environment!92
jon_nfc commented 2023-09-02 06:46:07 +00:00 (Migrated from gitlab.com)

nofusscomputing/projects/gitlab-ci!68 should confirm if this issue is still of concern.

nofusscomputing/projects/gitlab-ci!68 should confirm if this issue is still of concern.
jon_nfc commented 2023-09-02 06:46:07 +00:00 (Migrated from gitlab.com)

added 1m of time spent

added 1m of time spent
jon_nfc commented 2023-09-02 06:49:35 +00:00 (Migrated from gitlab.com)
issue will be closed as pipeline https://gitlab.com/nofusscomputing/projects/ansible/execution_environment/-/pipelines/989767035 was successful.
jon_nfc commented 2023-09-02 06:49:36 +00:00 (Migrated from gitlab.com)

added 3m of time spent

added 3m of time spent
jon_nfc (Migrated from gitlab.com) closed this issue 2023-09-02 06:49:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infrastructure/gitlab-ci#36
No description provided.