-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (30 loc) · 1.08 KB
/
build-docker-images.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
name: MicroK8s Services Images
on:
#push:
#schedule:
#- cron: '0 1 * * TUE,FRI'
workflow_dispatch:
inputs:
workflowAction:
description: 'Action'
default: 'Build helloworld-go and autoscale-go images'
required: true
jobs:
microk8s-kata-containers-docker-build:
runs-on: ubuntu-20.04
steps:
- name: Check environment
run: |-
lsb_release -a
- name: Checkout
uses: actions/checkout@v2
- name: Build helloworld-go & autoscale container images
run: |-
echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ secrets.DOCKER_USERID }} --password-stdin
echo "build and push helloworld-go:"
docker build --file docker/Dockerfile-helloworld --tag didierdurand/helloworld-go .
docker push didierdurand/helloworld-go
echo "build and push autoscale-go:"
docker build --file docker/Dockerfile-autoscale --tag didierdurand/autoscale-go .
docker push didierdurand/autoscale-go
rm /home/runner/.docker/config.json