Skip to content

0.2.0: build & publish #7

0.2.0: build & publish

0.2.0: build & publish #7

Workflow file for this run

name: Build & publish Docker Image
run-name: "${{ github.event.inputs.git_tag }}: build & publish"
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
git_tag:
description: 'Git tag'
required: true
permissions:
contents: read
packages: write
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GitHub Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/alileza/bridge:${{ inputs.git_tag }}