Skip to content

Commit

Permalink
Update container-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntax3rror404 authored Jun 6, 2024
1 parent de77cc8 commit ead65d1
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/container-image.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,20 @@
name: Container image build
on:
push:
branches: [ "master" ]
branches: [ master ]
pull_request:
branches: [ "master" ]

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v3
branches: [ master ]

# - name: Build container
# uses: aevea/[email protected]
# with:
# image: revealjs
# tag: latest
# registry: ghcr.io
# password: ${{secrets.CI_REGISTRY_PASSWORD}}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/metadata-action@v3
id: metadata
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/login-action@v1
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
#image: ${{ github.repository }}
registry: ghcr.io
tag: ${{ github.head_ref || github.ref_name }}
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 ead65d1

Please sign in to comment.