-
Notifications
You must be signed in to change notification settings - Fork 40
43 lines (41 loc) · 1.01 KB
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# SPDX-License-Identifier: Apache-2.0
# Copyright 2022 Intel Corporation
name: Docker image
on:
push:
branches:
- master
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout and build
- uses: actions/checkout@v3
- name: Build and push Docker image
run: |
make docker-build
# push-dockerhub:
# env:
# DOCKER_REGISTRY: "docker.io/"
# DOCKER_REPOSITORY: "badhrinathpa/"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
#
# - run: echo GIT_SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV
#
# - id: docker-login
# uses: docker/[email protected]
# with:
# registry: docker.io
# username: ${{ secrets.DOCKER_HUB_LOGIN }}
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
#
# - name: Build and push "master-latest" Docker images
# env:
# DOCKER_TAG: master-${{ env.GIT_SHA_SHORT }
# run: |
# make docker-build
# make docker-push