mirror of
https://github.com/gabrielkheisa/discord-active-developer-badge.git
synced 2024-12-04 09:13:32 +07:00
24 lines
702 B
YAML
24 lines
702 B
YAML
name: Build and Publish Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Trigger the workflow on pushes to the main branch
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Login to GitHub Packages Docker registry
|
|
run: echo "${{ secrets.GH_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
|
|
|
|
- name: Build Docker image
|
|
run: docker build -t docker.pkg.github.com/${{ github.repository }}/discord-badge:latest .
|
|
|
|
- name: Push Docker image
|
|
run: docker push docker.pkg.github.com/${{ github.repository }}/discord-badge:latest
|