-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (29 loc) · 1.09 KB
/
Release.yaml
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
name: Main - Upload Apps Images/Packages
on:
push:
branches:
- main
paths:
# Only run this when apps are updated.
- 'apps/**'
- '!apps/runtime/**'
jobs:
Release-Apps-Images:
# grant packages write permission to GITHUB_TOKEN to push images outside the workflow (within devcontainer image)
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: download code
with:
fetch-depth: 0
- name: build the devcontainer
uses: ./.github/actions/build-devcontainer
- name: log in to the container registry
run: |
docker exec devcontainer sh -c "docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}"
# export of cargo path in each step is required because it is not when exported in bootstraph.sh script
- name: push workload images
run: |
docker exec devcontainer sh -c "export PATH="/root/.cargo/bin:$PATH" && cd ./workspace && make build_push_app_images GITHUBORG=${{ github.repository_owner }} GITHUBREPO=${{ github.repository }}"