Skip to content

Merge pull request #67 from ties/document-modem-url #83

Merge pull request #67 from ties/document-modem-url

Merge pull request #67 from ties/document-modem-url #83

Workflow file for this run

# port from https://github.com/juanfont/headscale/blob/main/.github/workflows/release.yml
---
name: dev-release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
docker-dev-release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/${{ github.repository_owner }}/sagemcom-f3896-py
tags: |
value=latest
value=dev
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}