Skip to content

Commit

Permalink
Update container-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 authored Jun 6, 2024
1 parent e6a0af5 commit d495799
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/metadata-action@v3
- uses: docker/metadata-action@v4
id: metadata
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/login-action@v1
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
registry: ghcr.io
image: aevea/kaniko
username: ${{ github.actor }}
password: ${{secrets.CI_REGISTRY_PASSWORD}}
- uses: int128/kaniko-action@v1
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}

0 comments on commit d495799

Please sign in to comment.