Action used by NIAEFEUP projects to publish images built from them to an internal Image Registry
The inputs to this action as described in the action manifest are:
- Description: The name of the Harbor project under which to store this artifact. For further information see the relevant documentation.
- Required:
false - Default:
niaefeup
- Description: The name of the Harbor repository under which to store this artifact. For further information see the relevant documentation.
- Required:
false
- Description: The context Docker uses to build this image.
- Required:
false
- Description: The name of the Dockerfile used to build this image.
- Required:
false - Default:
Dockerfile-prod
- Description: Sets the target stage to build
- Required:
false
Warning
Due to limitations in Composite Action runners, some contexts (namely vars and secrets) are not available to use inside the action, as seen here. Those values need to be provided as inputs while this is not fixed. See this link for further details.
- Description: The URL of the Image Registry deployed in the NIployments cluster.
- Required:
true
- Description: The username to use when authentication against the Image Registry deployed in the NIployments cluster.
- Required:
true
- Description: The password to use when authentication against the Image Registry deployed in the NIployments cluster.
- Required:
true
Sample usage of this action:
name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Upload to NIployments register
uses: NIAEFEUP/[email protected]
with:
project_name: my-project
repository_name: my-repository
NIPLOYMENTS_REGISTRY_URL: ...
NIPLOYMENTS_REGISTRY_USERNAME: ...
NIPLOYMENTS_REGISTRY_PASSWORD: ...The code in this repository is licensed under the MIT license. See the LICENSE file for details