beta #4
Workflow file for this run
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
# Build for amd64 and arm64 and publish to DockerHub and GitHub Packages | |
# Pre-release published as :beta | |
name: :beta | |
on: | |
release: | |
types: | |
- 'prereleased' | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
push_to_registries: | |
name: Push Docker image to multiple registries | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@v3.2.0 | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3.6.1 | |
- name: Log in to DockerHub | |
uses: docker/login-action@v3.3.0 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Log in to the GitHub Packages container registry | |
uses: docker/login-action@v3.3.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: | | |
fetzu/teslamate-abrp | |
ghcr.io/${{ github.repository }} | |
tags: | | |
type=semver,pattern={{version}} | |
- name: Build and push Docker images for pre-releases (:beta) | |
if: github.event_name == 'prereleased' | |
uses: docker/build-push-action@v6 | |
with: | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
push: true | |
tags: | | |
${{ steps.meta.outputs.tags }}, | |
fetzu/teslamate-abrp:beta, | |
ghcr.io/${{ github.repository }}:beta | |
labels: ${{ steps.meta.outputs.labels }} |