Skip to content

cdn for bg images

cdn for bg images #7

Workflow file for this run

on:
push:
branches:
- 'main'
name: Build and Push to ACR
jobs:
build-and-push:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4
- name: 'Build and push image'
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:${{ github.sha }}
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:latest
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:${{ github.sha }}
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:latest
docker inspect ${{ secrets.REGISTRY_LOGIN_SERVER }}/ssl-checker-webapp:latest