Skip to content

Move docker image under kiskolabs #5

Move docker image under kiskolabs

Move docker image under kiskolabs #5

Workflow file for this run

name: Publish image
concurrency:
group: ${{ github.workflow }}
on:
workflow_dispatch:
push:
branches:
- main
tags-ignore:
- release-**
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v3
with:
images: itsmetommy/hello-github-actions
tags: |
type=ref,event=branch
type=sha
type=sha,prefix={{branch}}-
type=sha,format=long
type=sha,format=long,prefix={{branch}}-
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}