Skip to content

enable pushing image #3

enable pushing image

enable pushing image #3

Workflow file for this run

name: "Docker: Build and Push Image"
on:
push:
branches: [ "main" ]
tags:
- v**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: DOcker meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/tls-attacker/anvil-web
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}