Skip to content

Commit

Permalink
changed to gh registry
Browse files Browse the repository at this point in the history
  • Loading branch information
rmahique-github committed Nov 11, 2024
1 parent af2e299 commit ee0558d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Release

on: push

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}


jobs:

test:
Expand Down Expand Up @@ -40,16 +46,18 @@ jobs:
${{ runner.os }}-buildx-
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
# platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: rmahiquesuse/rancher-demo:${{ env.RELEASE_VERSION }}
# tags: rmahiquesuse/rancher-demo:${{ env.RELEASE_VERSION }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Run Trivy vulnerability scanner
Expand Down

0 comments on commit ee0558d

Please sign in to comment.