Updated CHANGELOG with build, images info #2
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
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@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Container Registry | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: docker_meta | |
uses: crazy-max/ghaction-docker-meta@v1 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tag-latest: false | |
- name: Push container image | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/build-push-action@v2 | |
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@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Container Registry | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: docker_meta | |
uses: crazy-max/ghaction-docker-meta@v1 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tag-latest: false | |
- name: Push container image | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/build-push-action@v2 | |
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@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Container Registry | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Docker meta | |
id: docker_meta | |
uses: crazy-max/ghaction-docker-meta@v1 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
tag-latest: false | |
- name: Push container image | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: | | |
${{ steps.docker_meta.outputs.tags }} | |
file: Dockerfile | |
platforms: linux/amd64, linux/arm64 |