Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
chore (docker-publish): updated actions
  • Loading branch information
alexander-gesinn authored Jun 5, 2024
1 parent 6249e05 commit a4beaf2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Publish docker image

on:
release:
types:
- published
types: [created]
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: gesinn-it-pub/openresearch-stack
IMAGE_NAME: tibhannover/openresearch-stack

jobs:
build:
Expand All @@ -21,23 +20,23 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ./context
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit a4beaf2

Please sign in to comment.