File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,21 +29,25 @@ jobs:
2929 - name : Checkout code
3030 uses : actions/checkout@v4
3131
32- - name : Set tag
33- id : set_tag
34- run : |
35- if [[ "${{ github.ref_type }}" == "branch" && "${{ github.ref_name }}" == "develop" ]]; then
36- echo "TAG=mtsrus/data-rentgen:develop" >> $GITHUB_ENV
37- elif [[ "${{ github.ref_type }}" == "tag" ]]; then
38- echo "TAG=mtsrus/data-rentgen:latest,mtsrus/data-rentgen:${{ github.ref_name }}" >> $GITHUB_ENV
39- fi
32+ - name : Docker meta
33+ id : meta
34+ uses : docker/metadata-action@v5
35+ with :
36+ images : mtsrus/data-rentgen
37+ labels : |
38+ org.opencontainers.image.title=Data.Rentgen
39+ org.opencontainers.image.vendor=MTS PJSC
40+ org.opencontainers.image.documentation=https://data-rentgen.readthedocs.io/
41+ org.opencontainers.image.url=https://hub.docker.com/r/mtsrus/data-rentgen
42+ org.opencontainers.image.authors=DataOps.ETL <onetools@mts.ru>
4043
4144 - name : Build Backend Image
4245 uses : docker/build-push-action@v6
4346 with :
44- tags : ${{ env.TAG }}
4547 context : .
4648 file : docker/Dockerfile
49+ tags : ${{ steps.meta.outputs.tags }}
50+ labels : ${{ steps.meta.outputs.labels }}
4751 pull : true
4852 push : true
4953 cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments