Skip to content

Commit

Permalink
Merge pull request #1458 from diggerhq/feat/release-ee-tasks
Browse files Browse the repository at this point in the history
release ee tasks
  • Loading branch information
ZIJ authored May 14, 2024
2 parents e8ffe04 + 9c3053c commit efc7efd
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ee_tasks_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: EE Tasks Publish docker image

on:
release:
types: ['released']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}_tasks_ee

jobs:
build-and-push-image:
if: (startswith(github.event.release.tag_name, 'v'))

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

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

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

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: "Dockerfile_tasks"
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit efc7efd

Please sign in to comment.