Skip to content

Commit

Permalink
ci: rename files to yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
  • Loading branch information
sagikazarmark authored and aslafy-z committed May 22, 2023
1 parent 3876a7a commit 4a7d7df
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7

permissions:
packages: write

jobs:
docker:
name: Docker
Expand All @@ -34,8 +31,9 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Determine tag or commit
uses: haya14busa/action-cond@v1
id: refortag
Expand All @@ -57,7 +55,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: fluentd-image/${{ steps.pathfromtag.outputs.value }}/
tags: ghcr.io/kube-logging/fluentd:${{ steps.imagetag.outputs.value }}
tags: ghcr.io/banzaicloud/fluentd:${{ steps.imagetag.outputs.value }}
file: fluentd-image/${{ steps.pathfromtag.outputs.value }}/Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
env:
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7

permissions:
packages: write

jobs:
docker:
name: Build and publish node-exporter Docker image to the GitHub Container Registry
Expand All @@ -33,8 +30,8 @@ jobs:
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Determine image tag
id: imagetag
run: echo "::set-output name=value::$(echo ${GITHUB_REF##*/} | sed 's/node-exporter-//g')"
Expand All @@ -44,7 +41,7 @@ jobs:
uses: docker/build-push-action@v3
with:
context: node-exporter-image/
tags: ghcr.io/kube-logging/node-exporter:${{ steps.imagetag.outputs.value }}
tags: ghcr.io/banzaicloud/node-exporter:${{ steps.imagetag.outputs.value }}
file: node-exporter-image/Dockerfile
platforms: ${{ env.PLATFORMS }}
push: true
Expand Down

0 comments on commit 4a7d7df

Please sign in to comment.