Skip to content

update version

update version #4

Workflow file for this run

name: publish-release
on:
push:
tags:
- '*'
jobs:
publish_docker_image:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo "tag=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@v3.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker build \
--tag ghcr.io/$GITHUB_ACTOR/kamidata-cli:latest \
--tag ghcr.io/$GITHUB_ACTOR/kamidata-cli:${{steps.get_version.outputs.tag}} \
.
- name: Push Docker Image
run: |
docker push ghcr.io/$GITHUB_ACTOR/kamidata-cli:latest
docker push ghcr.io/$GITHUB_ACTOR/kamidata-cli:${{steps.get_version.outputs.tag}}