Skip to content

Add support for GitHub issues closed as not planned (#47) #5

Add support for GitHub issues closed as not planned (#47)

Add support for GitHub issues closed as not planned (#47) #5

Workflow file for this run

name: Build and Publish Docker Image
on:
push:
tags:
- '*.*.*'
permissions:
packages: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract tag
id: extract_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Verify SemVer format
id: semver_check
run: |
if [[ ! "${TAG}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Tag ${TAG} is not in semver format X.X.X"
exit 1
fi
- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
tags: ghcr.io/canonical/gh-jira-sync-bot:${{ env.TAG }}
push: true