chore: test update omnibus-rssd-nginx.dockerfile #279
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
permissions: # Define required permissions | |
contents: read # To fetch the code | |
packages: write # Required to push to the package registry | |
id-token: write # For authentication if needed | |
pages: write # If GitHub Pages deployment is also required | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Log in to GitHub Container Registry | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
# Build the Docker image | |
- name: Build Docker image | |
run: | | |
docker build \ | |
--build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \ | |
--build-arg EG_SURVEILR_COM_IMAP_FOLDER=${{ secrets.EG_SURVEILR_COM_IMAP_FOLDER }} \ | |
--build-arg EG_SURVEILR_COM_IMAP_USER_NAME=${{ secrets.EG_SURVEILR_COM_IMAP_USER_NAME }} \ | |
--build-arg EG_SURVEILR_COM_IMAP_PASS=${{ secrets.EG_SURVEILR_COM_IMAP_PASS }} \ | |
--build-arg EG_SURVEILR_COM_IMAP_HOST=${{ secrets.EG_SURVEILR_COM_IMAP_HOST }} \ | |
-t ghcr.io/surveilr/www.surveilr.com/omnibus-rssd-nginx:latest \ | |
-f support/deploy/omnibus-rssd-nginx.dockerfile . | |
# Push the Docker image to the GitHub Container Registry | |
- name: Push Docker image | |
run: | | |
docker push ghcr.io/surveilr/www.surveilr.com/omnibus-rssd-nginx:latest |