Skip to content

Commit

Permalink
Merge branch 'main' of github.com:andersundsehr/searchforcompose
Browse files Browse the repository at this point in the history
  • Loading branch information
Itay Melo Krämer committed Sep 5, 2024
2 parents 332cb38 + 9236aa2 commit 8aab2ae
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: ci

on:
schedule:
# build every first of the month
- cron: '0 0 1 * *'
push:
workflow_dispatch:


jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
-
name: Login to Github
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: ${{ github.ref == 'refs/heads/main' }}
tags: ghcr.io/andersundsehr/searchforcompose,andersundsehr/searchforcompose

0 comments on commit 8aab2ae

Please sign in to comment.