Skip to content

Commit

Permalink
happy days
Browse files Browse the repository at this point in the history
  • Loading branch information
fastfadingviolets committed Jul 11, 2024
1 parent 474e825 commit 7ea5670
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create and publish a Docker image

on:
schedule:
- cron: "*/3 * * * *"
release:
types: [published]
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Echo!
run: |
echo "${{ steps.meta.outputs.tags }}"
echo "${{ steps.meta.outpus.labels }}"
with:
context: .
file: e2e.Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: env.GIT_DIFF

0 comments on commit 7ea5670

Please sign in to comment.