github: Tweak workflow.

This commit is contained in:
William Floyd 2025-02-06 20:35:52 +05:30
parent cff3e6778e
commit bbd33e8817
Signed by untrusted user who does not match committer: william
GPG key ID: B3EEEDD81893CAF9

View file

@ -8,25 +8,27 @@ env:
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
-
name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: name/app
-
name: Log in to the Container registry
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .