Skip to content

Commit d7529a9

Browse files
committed
Publishing 🧜🏽
1 parent 6de7a32 commit d7529a9

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Docker
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ master, main ]
66
tags: [ '*.*.*' ]
7-
pull_request:
8-
branches: [ master ]
97

108
env:
119
REGISTRY: ghcr.io

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ docker tag dbs-python-example ghcr.io/fiit-databases/dbs-python-example:latest
8181
```
8282

8383
You 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

8692
You 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
9096
docker 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)

0 commit comments

Comments
 (0)