mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
88 lines
2.4 KiB
YAML
88 lines
2.4 KiB
YAML
name: buildx
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
tags:
|
|
- "v*"
|
|
paths:
|
|
- ".github/workflows/buildx.yml"
|
|
- "grafana/**"
|
|
- "assets/**"
|
|
- "config/**"
|
|
- "lib/**"
|
|
- "priv/**"
|
|
- "mix.exs"
|
|
- "mix.lock"
|
|
- "entrypoint.sh"
|
|
- "Dockerfile"
|
|
- "VERSION"
|
|
|
|
jobs:
|
|
teslamate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: docker/metadata-action@v3.6.2
|
|
with:
|
|
images: teslamate/teslamate
|
|
tags: |
|
|
type=edge,
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1.12.0
|
|
with:
|
|
username: teslamate
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2.9.0
|
|
with:
|
|
context: .
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|
|
|
|
grafana:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: docker/metadata-action@v3.6.2
|
|
with:
|
|
images: teslamate/grafana
|
|
tags: |
|
|
type=edge,
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1.12.0
|
|
with:
|
|
username: teslamate
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2.9.0
|
|
with:
|
|
context: grafana
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|