Skip to content

Create docker-image.yml #1

Create docker-image.yml

Create docker-image.yml #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nimblehq/branch-tag-action@v1
id: extract
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: conplementag/vsts-agent
tags: ${{ env.BRANCH_TAG }}, latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}