mirror of
https://github.com/k8snetworkplumbingwg/whereabouts.git
synced 2025-06-03 06:42:26 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
121 lines
3.3 KiB
YAML
121 lines
3.3 KiB
YAML
name: Image push release
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
env:
|
|
image-push-owner: 'k8snetworkplumbingwg'
|
|
jobs:
|
|
push-amd64:
|
|
name: Image push/amd64
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Container Registry
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: crazy-max/ghaction-docker-meta@v5
|
|
with:
|
|
images: ghcr.io/${{ github.repository }}
|
|
tag-latest: false
|
|
|
|
- name: Push container image
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
${{ steps.docker_meta.outputs.tags }}-amd64
|
|
file: Dockerfile
|
|
|
|
push-arm64:
|
|
name: Image push/arm64
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Container Registry
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: crazy-max/ghaction-docker-meta@v5
|
|
with:
|
|
images: ghcr.io/${{ github.repository }}
|
|
tag-latest: false
|
|
|
|
- name: Push container image
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
${{ steps.docker_meta.outputs.tags }}-arm64
|
|
file: Dockerfile
|
|
platforms: linux/arm64
|
|
|
|
push-multi-arch:
|
|
name: Image push multi-arch
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Container Registry
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: docker_meta
|
|
uses: crazy-max/ghaction-docker-meta@v5
|
|
with:
|
|
images: ghcr.io/${{ github.repository }}
|
|
tag-latest: false
|
|
|
|
- name: Push container image
|
|
if: github.repository_owner == 'k8snetworkplumbingwg'
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
${{ steps.docker_meta.outputs.tags }}
|
|
file: Dockerfile
|
|
platforms: linux/amd64, linux/arm64
|