File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ name: Docker
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ master, main ]
66 tags : [ '*.*.*' ]
7- pull_request :
8- branches : [ master ]
97
108env :
119 REGISTRY : ghcr.io
Original file line number Diff line number Diff line change @@ -81,7 +81,13 @@ docker tag dbs-python-example ghcr.io/fiit-databases/dbs-python-example:latest
8181```
8282
8383You can use tag names for different versions of your image (for example to identify assignment version). The CI/CD
84- pipeline in this repository creates a ` :master ` tag after each git push to the ` master ` branch.
84+ pipeline creates Docker image for:
85+
86+ - each commit to ` main ` branch (will produce Docker image with ` :main ` tag),
87+ - each commit to ` master ` branch (will produce Docker image with ` :main ` tag),
88+ - each tag following sematic versioning (will produce Docker image with ` :x.x.x ` tag where ` x.x.x ` is version)
89+
90+ For more information check the ** Publishing** section.
8591
8692You can publish newly tagged image to the remote using
8793[ docker push] ( https://docs.docker.com/engine/reference/commandline/push/ ) command.
@@ -90,5 +96,13 @@ You can publish newly tagged image to the remote using
9096docker push ghcr.io/fiit-databases/dbs-python-example:latest
9197```
9298
99+ ## Publishing
100+
101+ Each assignment have to be published using via GitHub Releases. The CI/CD pipeline is configured for the [ Semantic
102+ versioning] ( https://semver.org/ ) scheme (the Docker is created for each git tag with sematic version eg. ` 1.0.0 ` ).
103+
104+ After you submit your assignment, you can't replace a container in the registry (Docker images created after
105+ submission deadline will be rejected).
106+
93107---
94108![ ] ( docs/fiit.png )
You can’t perform that action at this time.
0 commit comments