-
-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (35 loc) · 991 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-frontend-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Compile Frontend
uses: redhat-actions/buildah-build@v2
with:
image: catenarytransit/catenaryfrontend
tags: ${{ github.sha }} latest
containerfiles: |
./Dockerfile
- name: Push Frontend To ghcr.io
id: push-to-ghcr-frontend
uses: redhat-actions/push-to-registry@v2
with:
image: catenarytransit/catenaryfrontend
tags: ${{ github.sha }} latest
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_TOKEN }}