Skip to content

Commit

Permalink
fix; update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandMeppa authored Feb 7, 2024
1 parent d258ee3 commit 0f8638d
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,45 @@
name: cd

on:
push:
branches:
- cd
permissions:
packages: write
contents: read

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
publish:
build-deliver:
runs-on: ubuntu-latest

permissions:
packages: write
contents: read

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

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/ADORSYS/kcoid4vci
tags: type=sha
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build container
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
build-args: |
USERNAME: ${{ github.repository_owner }}
USERNAME: ${{ github.actor }}
PAT: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0f8638d

Please sign in to comment.