-
Notifications
You must be signed in to change notification settings - Fork 17
Create images action #179
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
Open
PhillipsOwen
wants to merge
8
commits into
irods:main
Choose a base branch
from
PhillipsOwen:create-images-action
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Create images action #179
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6905690
adding a github action to create all irods OS images
PhillipsOwen a924044
comment update
PhillipsOwen 9940dba
adding more secrets to the config
PhillipsOwen 56fe242
adjusting the way the container registry location is built up
PhillipsOwen 93db7d0
adding cr to the end of the file
PhillipsOwen e062a8a
removing old ubuntu versions
PhillipsOwen dbb4be7
removing versions that dont build, adding the building of release images
PhillipsOwen 0327887
tidying up
PhillipsOwen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Build and publish the docker image | ||
|
|
||
| # manual trigger event | ||
| on: workflow_dispatch | ||
|
|
||
| # working parameters that are specific to this script | ||
| env: | ||
| REGISTRY: containers.renci.org/irods/ | ||
|
|
||
| # job definition | ||
| jobs: | ||
| # create a job | ||
| Build-and-publish-image: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| # create an array of operating systems to build. this is a list of the directories that have a dockerfile | ||
| strategy: | ||
| matrix: | ||
| os_name: | ||
| - almalinux-8 | ||
| - centos-7 | ||
| - debian-11 | ||
| - debian-12 | ||
| - rockylinux-8 | ||
| - rockylinux-9 | ||
| - ubuntu-16.04 | ||
| - ubuntu-18.04 | ||
| - ubuntu-20.04 | ||
| - ubuntu-22.04 | ||
|
|
||
| # job steps | ||
| steps: | ||
| # connect to the renci image registry | ||
| - name: Login to containers.renci.org | ||
| uses: docker/login-action@v2 | ||
| with: | ||
| registry: ${{ secrets.CR_HOST }} | ||
| username: ${{ secrets.USER }} | ||
| password: ${{ secrets.PW }} | ||
|
|
||
| # checkout the codebase | ||
| - name: Checkout | ||
| uses: actions/checkout@v1 | ||
|
|
||
| # build and push the image. The docker v3 action automatically handles the git checkout. | ||
| - name: Build/Push the image to the registry | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| context: ./projects/${{ matrix.os_name }} | ||
| file: ./projects/${{ matrix.os_name }}/Dockerfile | ||
| push: true | ||
| tags: ${{ secrets.CR_HOST }}${{ secrets.CR }}${{ matrix.os_name }}:latest | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.