Skip to content

Commit

Permalink
Add docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
rubik-cube-man committed Nov 21, 2023
1 parent 584d67f commit ad71ee5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: image-publisher

on:
workflow_dispatch:
inputs:
IMAGE_TAG:
required: true
default: latest

jobs:
docker-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v4
with:
go-version-file: go.mod

- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push docker images
env:
IMAGE_REGISTRY: ghcr.io/teamziax/ocs-operator
REGISTRY_NAMESPACE: ocs-operator
IMAGE_TAG: ${{ github.event.inputs.IMAGE_TAG }}
run: |
make bundle

0 comments on commit ad71ee5

Please sign in to comment.