Skip to content

Commit

Permalink
Clean up workflow yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhendon committed Dec 20, 2023
1 parent f7ad285 commit 40f96d3
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,14 @@ env:
IMAGE_NAME: redsailtechnologies/psql-management

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run tests
run: docker build . --file Dockerfile
working-directory: ./src

# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
push:
# Ensure test job passes before pushing image.
needs: test

runs-on: ubuntu-latest
if: github.event_name == 'push'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build image
run: docker build . --target release --file Dockerfile --tag $IMAGE_NAME
Expand Down

0 comments on commit 40f96d3

Please sign in to comment.