Create dependabot.yml (#18) #17
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 for master | |
on: | |
push: | |
branches: | |
- master | |
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@v1 | |
- 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: Push container image | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/${{ github.repository }}:latest-amd64 | |
file: Dockerfile | |
push-origin: | |
name: Image push/origin | |
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@v1 | |
- 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: Push container image | |
if: github.repository_owner == 'k8snetworkplumbingwg' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/${{ github.repository }}:latest-ocp | |
file: Dockerfile.openshift |