Skip to content

Commit

Permalink
Merge pull request #2 from WISVCH/workflows
Browse files Browse the repository at this point in the history
Added workflow for creating deployment/docker image
  • Loading branch information
ThomBreugelmans authored Nov 27, 2024
2 parents 1dbf793 + f062bb6 commit fab2798
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: Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
deploy:
name: Deploy Docker Image
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/wisvch/aoch
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/main' }}

0 comments on commit fab2798

Please sign in to comment.