-
-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (35 loc) · 957 Bytes
/
release.yml
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
40
41
name: Release
on:
push:
branches: ['main']
env:
CARGO_TERM_COLOR: always
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Compile Maple
uses: redhat-actions/buildah-build@v2
with:
image: maple
tags: ${{ github.sha }}
containerfiles: |
./containers/maple/Dockerfile
- name: Push Maple To ghcr.io
id: push-to-ghcr-maple
uses: redhat-actions/push-to-registry@v2
with:
image: maple
tags: ${{ github.sha }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.IMAGE_REGISTRY_USER }}
password: ${{ env.IMAGE_REGISTRY_PASSWORD }}