Skip to content

Commit

Permalink
reformat release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ties committed Feb 17, 2024
1 parent 776ae24 commit 60b06d2
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,50 @@
name: release

on:
push:
tags:
- "*" # triggers only if push new tag version
workflow_dispatch:
push:
tags:
- "*" # triggers only if push new tag version
workflow_dispatch:

jobs:
docker-dev-release:
runs-on: ubuntu-latest
permissions:
docker-release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
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: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
value=latest
ghcr.io/${{ github.repository_owner }}/sagemcom-f3896-py
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
value=latest
- name: Login to GHCR
uses: docker/login-action@v1
with:
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:
id: docker_build
uses: docker/build-push-action@v3
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
Expand Down

0 comments on commit 60b06d2

Please sign in to comment.