Skip to content

Update docker-image.yml #3

Update docker-image.yml

Update docker-image.yml #3

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
- name: Set GIT_TAG
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
- name: Set RELEASE_VERSION
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
- uses: mr-smithers-excellent/docker-build-push@v3
name: Build & push Docker image
with:
image: conplementag/vsts-agent
tags: 2.0, latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}