Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Initial commit

Initial commit #1

Workflow file for this run

name: Build Image
on:
push:
branches:
- main
env:
IMG: ghcr.io/rss-engineering/nautobot_target_proxy
TAG: latest
jobs:
build-image:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db
- name: Login to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
with:
context: .
provenance: false
file: Dockerfile
tags: ${{ env.IMG }}:${{ env.TAG }}
load: true
cache-from: |
type=gha,scope=builder
type=gha,scope=app
cache-to: |
type=gha,scope=builder
type=gha,scope=app
target: app
push: ${{ github.event_name != 'pull_request' }}