Skip to content

Commit 3d09050

Browse files
authored
Merge pull request #1458 from diggerhq/feat/release-ee-tasks
release ee tasks
2 parents acd4c1d + 32a4116 commit 3d09050

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: EE Tasks Publish docker image
2+
3+
on:
4+
release:
5+
types: ['released']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}_tasks_ee
10+
11+
jobs:
12+
build-and-push-image:
13+
if: (startswith(github.event.release.tag_name, 'v'))
14+
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: read
19+
packages: write
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Log in to the Container registry
26+
uses: docker/login-action@7840e6ddd4a9223910798f6a315544257fccd96e
27+
with:
28+
registry: ${{ env.REGISTRY }}
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Extract metadata (tags, labels) for Docker
33+
id: meta
34+
uses: docker/metadata-action@v5.5.1
35+
with:
36+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
37+
38+
- name: Build and push Docker image
39+
uses: docker/build-push-action@v5.3.0
40+
with:
41+
context: .
42+
file: "Dockerfile_tasks"
43+
push: true
44+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
45+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)