Skip to content

Creating the docker image file fior repository-nginx #3

Creating the docker image file fior repository-nginx

Creating the docker image file fior repository-nginx #3

Workflow file for this run

name: Build Buildah
on:
push:
branches: ["*"]
paths: 'buildah/**'
tags: ["v*"]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Generate container metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/obmondo/buildah
tags: |
type=semver,pattern={{version}},value=v1.32.0
type=ref,event=tag
flavor: |
latest=false
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build & push container image
id: docker_build
uses: docker/build-push-action@v2
with:
file: "./buildah/Dockerfile"
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}