-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.37 KB
/
release.yml
File metadata and controls
40 lines (34 loc) · 1.37 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
38
39
name: Build Docker Image
on:
release:
types: [published]
jobs:
build:
# only stable releases
if: ${{ github.event.release.draft == false && github.event.release.prerelease == false }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# https://github.com/actions/checkout/releases/tag/v6.0.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
# https://github.com/docker/setup-buildx-action/releases/tag/v4.0.0
- name: Login to GitHub Container Registry
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
# https://github.com/docker/login-action/tree/v4.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
# https://github.com/docker/build-push-action/releases/tag/v7.1.0
with:
platforms: linux/amd64
push: true
tags: ghcr.io/deltablot/eln.community:latest
build-args: |
VERSION=${{ github.event.release.tag_name }}
cache-from: type=gha
cache-to: type=gha,mode=max