Skip to content

workflow push

workflow push #7

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- master
- workflow
env:
NAME: "requests-hook"
REGISTRY: ghcr.io
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: hook/
tags: ${{ env.REGISTRY }}/${{ github.actor }}/requests-hook:latest
push: true