Refactor some workflows for consistency (#1510) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |