2024-05-29 09:13:45 +01:00
|
|
|
name: Build and Publish drop-in-url-previews
|
|
|
|
run-name: Build and Publish drop-in-url-previews
|
2024-04-22 16:45:41 +01:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2024-05-29 09:13:45 +01:00
|
|
|
build_and_publish:
|
2024-04-22 16:45:41 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-05-29 08:49:23 +01:00
|
|
|
- name: Checkout repository
|
2024-04-22 16:45:41 +01:00
|
|
|
uses: actions/checkout@v4
|
2024-05-29 08:49:23 +01:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
2024-05-29 09:13:45 +01:00
|
|
|
- name: Login to git.i-am.nexus
|
2024-05-29 08:49:23 +01:00
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.i-am.nexus
|
2024-05-29 09:24:35 +01:00
|
|
|
username: ${{ secrets.CR_USERNAME }}
|
|
|
|
password: ${{ secrets.CR_PASSWORD }}
|
2024-05-29 08:49:23 +01:00
|
|
|
- name: Extract metadata (tags, labels) for Docker
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@v5
|
|
|
|
with:
|
2024-05-29 09:13:45 +01:00
|
|
|
images: git.i-am.nexus/nex/drop-in-url-previews
|
2024-05-29 09:19:40 +01:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: false
|
2024-05-29 09:22:04 +01:00
|
|
|
load: true
|
2024-05-29 09:19:40 +01:00
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
|
|
labels: ${{ steps.meta.outputs.labels }}
|
2024-05-29 09:13:45 +01:00
|
|
|
- name: Push to container registry
|
|
|
|
run: |
|
|
|
|
docker push -a git.i-am.nexus/nex/drop-in-url-previews
|