chore(deps): update alpine:3.19 docker digest to c5b1261 (#111) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/container-scan@f9af925b897d8af5f7e0026b8bca9346261abc93 # v0.1 | |
with: | |
image-name: ghcr.io/${{ github.repository }}:${{ github.sha }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.ACTIONS_PAT }} | |
- name: Push Container | |
run: docker push ghcr.io/${{ github.repository }}:latest |