Skip to content

Update Deploy.yml (#7) #20

Update Deploy.yml (#7)

Update Deploy.yml (#7) #20

Workflow file for this run

name: CI/CD
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Setup docker build'
uses: docker/setup-buildx-action@v3
- name: 'Login to private container registry'
uses: Azure/docker-login@v1
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
login-server: ${{ secrets.REGISTRY_URL }}
- name: 'Build docker image'
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.REGISTRY_URL }}/gavinpower747/shortener:latest
build-args: |
GIT_COMMIT=${{github.sha}}
GIT_BRANCH=${{github.ref}}
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')