-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 764 Bytes
/
Copy pathbuild-dev.yml
File metadata and controls
32 lines (29 loc) · 764 Bytes
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
name: build
on:
workflow_dispatch:
push:
branches:
- dev
env:
REPO: ${{ github.repository }}
jobs:
build-app:
runs-on: ubuntu-latest
steps:
- name: downcase REPO
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker image
env:
TAG: ghcr.io/${{ env.REPO }}:dev
run: |
echo $TAG
docker build -f configurations/docker/Dockerfile . --tag $TAG --cache-from $TAG
docker push $TAG