Skip to content

Vola o Rosica - versione personalizzata #49

Vola o Rosica - versione personalizzata

Vola o Rosica - versione personalizzata #49

on:
workflow_dispatch:
push:
paths:
- 'ide/docker/**'
- 'ide/provisioning/**'
- '.github/workflows/build-container.yml'
jobs:
xcsoar-docker-env:
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGENAME: xcsoar-build
steps:
- uses: actions/checkout@v3
with:
submodules: True
- name: Login to Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- id: string
uses: ASzc/change-string-case-action@v1
with:
string: ${{ github.repository }}
- name: build and push
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
context: ./ide
file: ./ide/docker/Dockerfile
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/xcsoar-build:latest
cache-from: type=registry,ref=ghcr.io/${{ steps.string.outputs.lowercase }}/xcsoar-build:latest
cache-to: type=inline
secrets: |
GIT_AUTH_TOKEN=${{ github.token }}