Skip to content

Commit

Permalink
pin ubuntu version, update actions (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
joewatt95 authored Apr 29, 2024
1 parent 04d9a81 commit 1e09331
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ env:

jobs:
build:
runs-on: ubuntu-22.04

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand All @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
Expand All @@ -51,7 +51,7 @@ jobs:
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -71,7 +71,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5.0.0
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
Expand All @@ -81,7 +81,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5.0.0
uses: docker/build-push-action@v5
with:
context: 'natural4-server/Docker/nginx/'
push: ${{ github.event_name != 'pull_request' }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-publish-sanic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ env:

jobs:
build:
runs-on: ubuntu-22.04

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Expand All @@ -37,18 +37,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
uses: docker/setup-buildx-action@v3

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -68,7 +68,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5.0.0
uses: docker/metadata-action@v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
Expand All @@ -78,7 +78,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v5.0.0
uses: docker/build-push-action@v5
with:
context: 'natural4-server/Docker/sanic/'
build-contexts: |
Expand Down

0 comments on commit 1e09331

Please sign in to comment.