Skip to content

chore(config): migrate renovate config (#71) #33

chore(config): migrate renovate config (#71)

chore(config): migrate renovate config (#71) #33

name: Build and Deploy Docker
on:
push:
branches: [ main ]
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@master
# - name: Build and Push Docker Image
# uses: docker/[email protected]
# with:
# push: true
# tags: |
# ghcr.io/${{ github.repository }}:${{ github.sha }}
# ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Build Container
run: docker build . -t ghcr.io/${{ github.repository }}:${{ github.sha }} -t ghcr.io/${{ github.repository }}:latest
- name: Scan container for issues
uses: Azure/[email protected]
with:
image-name: ghcr.io/${{ github.repository }}:${{ github.sha }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.ACTIONS_PAT }}
- name: Push Container
run: docker push ghcr.io/${{ github.repository }}:latest