build and push in one job

This commit is contained in:
kaiiak
2022-01-02 23:17:19 +08:00
parent ae264e9680
commit 31a4c134e9

View File

@@ -7,18 +7,16 @@ on:
branches: [master] branches: [master]
jobs: jobs:
build: # build:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
# - name: Build the Docker image with golang:buster # - name: Build the Docker image with golang:buster
# run: docker build . --file Dockerfile.buster --tag opencv-docker-golang:buster # run: docker build . --file Dockerfile.buster --tag opencv-docker-golang:buster
# - name: Build the Docker image with ubuntu:20.04
- name: Build the Docker image with ubuntu:20.04 # run: docker build . --file Dockerfile.ubuntu --tag opencv-docker-golang:ubuntu
run: docker build . --file Dockerfile.ubuntu --tag opencv-docker-golang:ubuntu # - name: Build the Docker image with dlib
# run: docker build . --file Dockerfile.dlib --tag opencv-docker-golang:dlib
# - name: Build the Docker image with dlib
# run: docker build . --file Dockerfile.dlib --tag opencv-docker-golang:dlib
push_to_registries: push_to_registries:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions: