All checks were successful
Publish / Build and publish (push) Successful in 4m45s
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
---
|
|
name: Publish
|
|
on:
|
|
push: {branches: ["main"]}
|
|
workflow_dispatch:
|
|
workflow_run:
|
|
branches: ["main"]
|
|
types:
|
|
- completed
|
|
jobs:
|
|
publish:
|
|
name: Build and publish
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with: {fetch-depth: 0}
|
|
|
|
- name: Login to container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: https://git.kree.gr
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ${{ env.IMAGE_NAME }}
|
|
flavor: |
|
|
latest=auto
|
|
prefix=
|
|
suffix=
|
|
tags: |
|
|
type=ref,event=branch
|
|
type=ref,event=pr
|
|
type=semver,pattern={{version}}
|
|
type=sha,prefix=
|
|
|
|
- name: Build and publish
|
|
uses: devcontainers/ci@v0.3
|
|
with:
|
|
imageName: git.kree.gr/kreeger/devcontainer
|
|
cacheFrom: git.kree.gr/kreeger/devcontainer
|
|
push: always
|