Skip to content

Commit

Permalink
build the container again
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidma committed Nov 20, 2024
1 parent 76b0029 commit 91c9e46
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,45 @@ on:
- main

jobs:
# publish:
# name: Build and Publish
# runs-on: ubuntu-latest
# env:
# IMAGE_NAME: mopad
# IMAGE_TAGS: latest ${{ github.sha }} ${{ github.ref_name }}
# IMAGE_REGISTRY: docker://ghcr.io/hulks/
# REGISTRY_USER: ${{ github.actor }}
# REGISTRY_PASSWORD: ${{ github.token }}
# steps:
# - uses: actions/checkout@v4
# with:
# lfs: true
#
# - name: build image
# id: build-image
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: ${{ env.IMAGE_TAGS }}
# containerfiles: |
# ./Containerfile
#
# - name: push to ghcr.io
# id: push-to-registry
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.build-image.outputs.image }}
# tags: ${{ steps.build-image.outputs.tags }}
# registry: ${{ env.IMAGE_REGISTRY }}
# username: ${{ env.REGISTRY_USER }}
# password: ${{ env.REGISTRY_PASSWORD }}
#
# - name: echo outputs
# run: |
# echo "${{ toJSON(steps.push-to-registry.outputs) }}"
#
publish:
name: Build and Publish
runs-on: ubuntu-latest
env:
IMAGE_NAME: mopad
IMAGE_TAGS: latest ${{ github.sha }} ${{ github.ref_name }}
IMAGE_REGISTRY: docker://ghcr.io/hulks/
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
lfs: true

- name: build image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
containerfiles: |
./Containerfile
- name: push to ghcr.io
id: push-to-registry
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}

- name: echo outputs
run: |
echo "${{ toJSON(steps.push-to-registry.outputs) }}"
deploy:
# needs: publish
needs: publish
name: Deploy
runs-on: self-hosted
container:
Expand Down

0 comments on commit 91c9e46

Please sign in to comment.