Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk authored Nov 16, 2023
1 parent 589f402 commit effb5ff
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,25 @@ name: build docker image

on:
push:
branches:
- master
# branches:
# - master

permissions:
contents: read

jobs:
build:
if: github.repository_owner == 'errbotio'
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/[email protected]

- name: build and push docker image
- name: build and push image
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: errbotio/errbot
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
with:
image: image-name
registry: ghcr.io
githubOrg: override-org # optional
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}

0 comments on commit effb5ff

Please sign in to comment.