Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action support #24

Merged
merged 2 commits into from
Nov 29, 2022
Merged

Conversation

badhrinathpa
Copy link
Contributor

No description provided.

username: ${{ secrets.DOCKER_HUB_LOGIN }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push "master-latest" Docker images
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we using this image anywhere ? Else just compiling should be good enough ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will comment out the docker push part. can enable later.


- name: Build and push "master-latest" Docker images
env:
DOCKER_TAG: master-${{ env.GIT_SHA_SHORT }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we get branch tag in the GitHub action ? As such this is ok for now, but want to know if we can use destination branch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we can add branch name in tag :
- name: Build
run: docker build -t udm/tag-example:${GITHUB_REF##*/} .

Currently we are running for master only. so didnt add branch name.

build:
env:
DOCKER_REGISTRY: "docker.io/"
DOCKER_REPOSITORY: "badhrinathpa/"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open item to check with ONF infra team ? @amolonf would you be able to get this work with omec-project

run: |
git --no-pager diff

# Build again and commit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see only build and no commit... Did I miss anything ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. will add the commit part.

Makefile Outdated
@@ -1,6 +1,7 @@
# Copyright 2019 free5GC.org
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep... free5g copyright after SPDX header.

@thakurajayL thakurajayL merged commit 6956659 into omec-project:master Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants