Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build and push an image to GitHub container registry #3

Merged
merged 7 commits into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 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
packages: write

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

steps:
- name: checkout
uses: actions/checkout@v4.1.1

- 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 }}
image: errbot
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}