Skip to content

Commit

Permalink
Merge pull request #5 from pooh-bear/gpr-main
Browse files Browse the repository at this point in the history
chore(ci): update docker build
  • Loading branch information
pooh-bear authored May 26, 2024
2 parents 1de0353 + c2ae438 commit 4dacc3d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,68 @@ on: push

jobs:
build:
name: Build Image
name: Build Commit Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/pooh-bear/intellistar-emulator
gabepb/intellistar-emulator
tags: |
type=raw,priority=1000,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
type=raw,priority=1000,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
type=ref,event=branch
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
id: docker_build

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push to GitHub Container Registry
id: ghcr_build
uses: docker/build-push-action@v3
with:
context: .
pull: true
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and Push to Docker Hub
id: docker_hub_build
uses: docker/build-push-action@v3
with:
context: .
pull: true
push: ${{ github.ref == 'refs/heads/master' }}
push: ${{ github.ref == 'refs/heads/main' }}
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ A web application that displays weather information in the same visual presentat

Forked from [qconrad's incredible effort](https://github.com/qconrad/intellistar-emulator) to serve as a more frequently updated, bleeding edge version of this project. (See Contributing.)

[![build-docker](https://github.com/pooh-bear/intellistar-emulator/actions/workflows/build-docker.yaml/badge.svg)](https://github.com/pooh-bear/intellistar-emulator/actions/workflows/build-docker.yaml)

## Overview
This is a local forecast segment that airs on The Weather Channel called the "Local on the 8s". The name is because it airs at timeslots that end in "8" (9:28, 2:48, etc.). The forecast is approximately a minute long and provides information on current and forecasted weather conditions. This type of forecast started in 1982 using WeatherStar units. It was later upgraded to Intellistar in 2003 and received various graphic changes over the years. This emulator uses the style that started in 2013.

Expand Down

0 comments on commit 4dacc3d

Please sign in to comment.