Skip to content

Commit

Permalink
Create build weekly workflow for PostgreSQL 17
Browse files Browse the repository at this point in the history
  • Loading branch information
schnapster committed Nov 10, 2024
1 parent c795252 commit 7324361
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Weekly Build & Publish

on:
schedule:
- cron: "0 6 * * 1" # every Monday at 6:00

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

- name: Set up env

run: |
IMAGE_BASE=${{ env.DOCKER_USERNAME }}/poggres
IMAGE_TAG=17
echo "DOCKER_TAG=$IMAGE_BASE:$IMAGE_TAG" >> "$GITHUB_ENV"
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker Build
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
run: docker build -t "${{ env.DOCKER_TAG }}" .

- name: Docker Push
run: |
docker push "${{ env.DOCKER_TAG }}"

0 comments on commit 7324361

Please sign in to comment.