Skip to content

ci: easy dockerfile #23

ci: easy dockerfile

ci: easy dockerfile #23

Workflow file for this run

on:
push:
branches: [ "test-release" ]
permissions:
packages: write
name: release webapp
defaults:
run:
working-directory: webapp
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}/webapp
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Repository
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: "{{defaultContext}}:webapp"
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}