mirror of
https://github.com/pischule/go-mention-all-bot.git
synced 2025-12-19 06:56:43 +00:00
32 lines
732 B
YAML
32 lines
732 B
YAML
name: Docker Image CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Docker Login
|
|
uses: docker/login-action@v2.1.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@v4
|
|
with:
|
|
images: ghcr.io/pischule/go-mention-all-bot
|
|
- name: Build and push Docker images
|
|
uses: docker/build-push-action@v4.0.0
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|