Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,35 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v6

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and publish master as 'edge'
if: github.ref_name == 'master'
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
repository: wirepas/${{ github.event.repository.name }}
tags: edge
push: true
tags: |
${{ github.repository }}:edge
platforms: linux/amd64,linux/arm64

- name: Build and publish tagged version as 'version' and 'latest'
if: github.ref_type == 'tag'
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
repository: wirepas/${{ github.event.repository.name }}
tags: latest,${{ github.ref_name }}
push: true
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
18 changes: 9 additions & 9 deletions .github/workflows/manual-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ jobs:
with:
ref: ${{ inputs.tag }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and publish the selected tag
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
repository: wirepas/${{ github.event.repository.name }}
tags: ${{ inputs.tag }}
push: true
tags: |
${{ github.repository }}:${{ inputs.tag }}
platforms: linux/amd64,linux/arm64