Skip to content

feat: dws-3854-allow-all-ips #1

feat: dws-3854-allow-all-ips

feat: dws-3854-allow-all-ips #1

name: Docker Build/Push NodeShift version.
on:
push:
branches:
- nodeshift-dev
pull_request:
branches:
- nodeshift-dev
jobs:
build-docker-image:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Fetch Secrets
uses: bitwarden/sm-action@v1
with:
access_token: ${{ secrets.BW_PUBLIC_PIPELINE_ACCESS_TOKEN }}
secrets: |
36f7899e-da1c-47a1-bfaa-b16300eee9f3 > REGISTRY_USER
55987f21-7148-48e2-b88c-b17f00791f98 > REGISTRY_PASSWORD
- name: "login to remote registry"
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
uses: docker/build-push-action@v4
with:
tags: |
ghcr.io/${{ github.repository }}/netmaker:${{ github.sha }}
push: true
context: .