Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vordenken authored Oct 19, 2023
1 parent 9208d1d commit 6cbad39
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Docker Image CI
name: Publish Docker Image

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
branches:
- master

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v2

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

- name: Build the Docker image
run: docker build -t deye-dummycloud:latest .
run: docker build -t ghcr.io/vordenken/deye-microinverter-cloud-free/deye-dummycloud:latest .
working-directory: ./dummycloud

- name: Login to GitHub Container Registry
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin

- name: Push Docker image to GitHub Container Registry
run: docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository_name }}/deye-dummycloud:latest

0 comments on commit 6cbad39

Please sign in to comment.