mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
24 lines
634 B
YAML
24 lines
634 B
YAML
name: Publish Docker image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
publish-docker-image:
|
|
if: github.repository_owner == 'gbdev'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Build and push Docker image to the GHCR
|
|
run: |
|
|
docker build . --tag ghcr.io/gbdev/rgbds:master
|
|
docker push ghcr.io/gbdev/rgbds:master
|