mirror of
https://github.com/dcarrillo/docker-nginx.git
synced 2025-11-20 05:22:35 +00:00
Bump nginx to 1.29.3 and refactor the building/testing
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -10,19 +10,19 @@ jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: shellcheck
|
||||
uses: azohra/shell-linter@v0.4.0
|
||||
uses: azbagheri/shell-linter@latest
|
||||
|
||||
- name: hadolint
|
||||
uses: brpaz/hadolint-action@master
|
||||
|
||||
- name: Build image
|
||||
run: ./build.sh
|
||||
run: make build
|
||||
|
||||
- name: Run tests
|
||||
run: ./tests/test.sh
|
||||
run: make tests
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -30,10 +30,10 @@ jobs:
|
||||
- tests
|
||||
if: github.event_name == 'push'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Log in to dockerhub
|
||||
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
|
||||
|
||||
- name: Deploy image
|
||||
run: ./build.sh --push --latest
|
||||
run: make push-latest
|
||||
|
||||
Reference in New Issue
Block a user