3
0
mirror of https://github.com/ergochat/ergo.git synced 2025-02-03 16:14:09 +01:00

Merge pull request #2036 from slingamn/docker

bump docker actions
This commit is contained in:
Shivaram Lingamneni 2023-01-15 06:02:21 -08:00 committed by GitHub
commit 7193fa3a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,10 +18,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Git repository - name: Checkout Git repository
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Authenticate to container registry - name: Authenticate to container registry
uses: docker/login-action@v1 uses: docker/login-action@v2
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
@ -30,16 +30,16 @@ jobs:
- name: Extract metadata - name: Extract metadata
id: meta id: meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v4
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Setup Docker buildx driver - name: Setup Docker buildx driver
id: buildx id: buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v2
- name: Build and publish image - name: Build and publish image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v3
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}