Skip to content

Commit

Permalink
docker image push to github packages
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Laitio <[email protected]>
  • Loading branch information
lamikr committed Jan 16, 2025
1 parent 4fe605f commit 0f735ab
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,31 @@ on:
description: 'Build the docker image'
required: true
default: 'true'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
build-and-push-image:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4

- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: build_rocm_sdk_builder_src_image
run: docker build docs/notes/containers/github/docker_build -t rsb_image_base:latest

- name: rsb_image_core_03
run: docker run --name rsb_image_core_03 rsb_image_base bash -c "cd /rocm_sdk_builder && ./babs.sh -b binfo/core/003_llvm_project_llvm.binfo"
run: docker run --name rsb_image_core_03 rsb_image_base bash -c "cd /rocm_sdk_builder && ./babs.sh -b binfo/core/003_llvm_project_llvm.binfo"

- name: 'push_image'
run: |
docker tag rsb_image_core_03 ghcr.io/lamikr/store:latest
docker push ghcr.io/lamikr/store:latest

0 comments on commit 0f735ab

Please sign in to comment.