try fixing later enable of parking position #556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Build VWsFriend docker edge | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ main ] | |
paths: | |
- .github/workflows/vwsfriend-docker-edge.yml | |
- vwsfriend/** | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
vwsfriend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Swap Space | |
uses: pierotofy/set-swap-space@v1.0 | |
with: | |
swap-size-gb: 10 | |
- run: | | |
# Workaround for https://github.com/rust-lang/cargo/issues/8719 | |
sudo mkdir -p /var/lib/docker | |
sudo mount -t tmpfs -o size=10G none /var/lib/docker | |
sudo systemctl restart docker | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
tillsteinbach/vwsfriend | |
ghcr.io/tillsteinbach/vwsfriend | |
tags: | | |
type=edge | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v3.6.1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3.3.0 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v6.7.0 | |
with: | |
allow: security.insecure | |
context: vwsfriend | |
file: vwsfriend/Dockerfile-edge | |
push: ${{ github.event_name != 'pull_request' }} | |
platforms: linux/amd64,linux/arm/v7,linux/arm64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |