CI configuration - #101
Conversation
|
Can one of the admins verify this patch? |
0d94f64 to
952da6e
Compare
952da6e to
9e2c324
Compare
| runs-on: ubuntu-20.04 | ||
| if: "!contains(github.event.head_commit.message, '[ci skip]')" | ||
|
|
||
| services: |
There was a problem hiding this comment.
For some reason the maven plugin io.fabric8:docker-maven-plugin which runs the following containers does not work within github worker. This declaration does that instead, and maven plugin execution is disabled via -Ddocker.skip=true flag
|
|
||
| - name: Build and Test | ||
| run: | ||
| ./mvnw --batch-mode --update-snapshots deploy |
There was a problem hiding this comment.
I added maven wrapper to ensure maven version consistency regardless of underlying github worker environment which executes our workflow.
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <artifactId>maven-deploy-plugin</artifactId> |
There was a problem hiding this comment.
I've added a possibility of skipping maven artifact upload, since we don't need it to upload the image.
|
|
||
| env: | ||
| REGISTRY_URL: docker.io | ||
| REGISTRY_NAMESPACE: mrutski |
There was a problem hiding this comment.
Could you please set the value to '${{ secrets.DOCKER_REGISTRY_USERNAME }}'?
Create Github Actions CI configuration for image push to Docker Hub
Configure workflow env variables to specify registry URL and namespace, by default images are pushed to Docker Hub in my personal namespace.
Configure authentication with registry by specifying project's secret variables (username and password)