Skip to content

Commit

Permalink
Create wn-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ttedeschi authored Feb 21, 2025
1 parent 32c0db2 commit 0acb759
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/wn-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: wn-image

on:
push:
tags:
- "*"
jobs:
wn-image:
runs-on: ubuntu-latest
#env:
# DOCKER_TARGET_PLATFORM: linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get Repo Owner
id: get_repo_owner
run: echo ::set-output name=repo_owner::$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')
- name: Build container wn image
uses: docker/build-push-action@v2
with:
context: ./
outputs: "type=registry,push=true"
tags: |
ghcr.io/${{ steps.get_repo_owner.outputs.repo_owner }}/htcondor-wn:pd-bubble-${{ env.RELEASE_VERSION }}
file: ./Dockerfile
platforms: linux/amd64
build-args: "NOTEBOOK_VERSION=${{ env.RELEASE_VERSION }}"

0 comments on commit 0acb759

Please sign in to comment.