-
-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (31 loc) · 1.07 KB
/
Copy pathdocker-image.yml
File metadata and controls
37 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Docker Image CI
on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
workflow_dispatch: # allows manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build the Docker image
run: docker build . --file Dockerfile --tag eos_connect_v0.0.${{github.run_number}}
- name: Save Docker image to file
run: docker save eos_connect_v0.0.${{github.run_number}} -o eos_connect_v0.0.${{github.run_number}}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: eos_connect_v0.0.${{github.run_number}}
path: |
eos_connect_v0.0.${{github.run_number}}
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v0.0.${{github.run_number}}"
draft: false
prerelease: false
title: "eos_connect dockerimage v0.0.${{github.run_number}}"
files: |
eos_connect_v0.0.${{github.run_number}}