Skip to content

Remove redundant CI step #12

Remove redundant CI step

Remove redundant CI step #12

Workflow file for this run

on:
push:
paths-ignore:
- '.vscode/**'
- '**.toml'
- '**.md'
pull_request:
paths-ignore:
- '.vscode/**'
- '**.toml'
- '**.md'
workflow_dispatch:
name: CI
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
push:
name: Push Docker image to container registry
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}