Merge pull request #35 from cdot65:29-enhancement-ship-docker-contain… #1
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 push Docker image to GitHub Container Registry | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-container-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build the container image | |
run: | | |
docker build --tag ghcr.io/cdot65/pan-os-upgrade:latest | |
docker push ghcr.io/cdot65/pan-os-upgrade:latest |