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

Update workflow #128

Merged
merged 2 commits into from
Nov 1, 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
27 changes: 14 additions & 13 deletions .github/workflows/build_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "pulumi"
tags:
- "*"

Expand All @@ -13,11 +14,20 @@ env:

jobs:
build-and-push-image:
name: Push Docker image to GitHub container repository
name: Push Docker images to GitHub container repository
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: docker/reginald/Dockerfile
image: ghcr.io/${{ github.repository }}_reginald
- dockerfile: docker/slack_bot/Dockerfile
image: ghcr.io/${{ github.repository }}_slackbot
permissions:
packages: write
contents: read

steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand All @@ -33,21 +43,12 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository }}
- name: Build and push Docker image for the Reginald app
uses: docker/build-push-action@v4
with:
file: docker/reginald/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
images: ${{ matrix.image }}

- name: Build and push Docker image for the slack-bot only app
- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
file: docker/slack_bot/Dockerfile
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}