Skip to content

feat: pipeline updated #15

feat: pipeline updated

feat: pipeline updated #15

Workflow file for this run

name: Version Release
on:
push:
tags:
- "*"
jobs:
container-images:
name: Build and push container images
runs-on: ubuntu-latest
env:
DOCKER_REGISTRY: hub.docker.com
DOCKER_REPOSITORY: kriten
DOCKER_PLATFORM: linux/amd64
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Generates Swag docs
uses: yegorrybchenko/[email protected]
with:
command: init --parseDependency --parseInternal
swagWersion: 1.8.12
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ env.DOCKER_REPOSITORY }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
platforms: ${{ env.DOCKER_PLATFORM }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}