Skip to content

Commit

Permalink
Merge pull request #5 from lsst-dm/tickets/DM-45728
Browse files Browse the repository at this point in the history
DM-45728: Update github action to build for arm64
  • Loading branch information
roceb authored Aug 14, 2024
2 parents cfbfe0c + 4012202 commit 3635c34
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 227 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build Jenkins swarm client container
on:
push:
branches:
- master
- main
pull_request:

env:
Expand All @@ -15,26 +15,15 @@ jobs:
packages: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build swarm image
run: |
docker build . \
--build-arg JSWARM_UID=48435 \
--build-arg JSWARM_GID=202 \
--tag $CONTAINER_NAME \
--label "runnumber=${GITHUB_RUN_ID}"
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin

- name: Push images
run: |
CONTAINER_ID=ghcr.io/${{ github.repository_owner }}/$CONTAINER_NAME
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[ "$VERSION" == "master" ] && VERSION=latest
echo CONTAINER_ID=$CONTAINER_ID
echo VERSION=$VERSION
docker tag $CONTAINER_NAME $CONTAINER_ID:$VERSION
docker push $CONTAINER_ID:$VERSION
- name: Checkout
uses: actions/checkout@v4
- name: Build and push
uses: lsst-dm/build-and-push@main
with:
platforms: linux/amd64,linux/arm64
github_token: ${{ secrets.GITHUB_TOKEN }}
push: true
build-args: |
JSWARM_UID=48435
JSWARM_GID=202
labels: runnumber=${{ github.run_id }}
11 changes: 11 additions & 0 deletions .github/workflows/markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint Markdown Files

on:
push:
branches:
- main
pull_request:

jobs:
call-workflow:
uses: lsst/rubin_workflows/.github/workflows/markdownlint.yaml@main
7 changes: 7 additions & 0 deletions .github/workflows/rebase_checker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: Check that 'main' is not merged into the development branch

on: pull_request

jobs:
call-workflow:
uses: lsst/rubin_workflows/.github/workflows/rebase_checker.yaml@main
8 changes: 8 additions & 0 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Lint YAML Files

on:
pull_request:

jobs:
call-workflow:
uses: lsst/rubin_workflows/.github/workflows/yamllint.yaml@main
8 changes: 0 additions & 8 deletions .hadolint.yaml

This file was deleted.

32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: default
rules:
truthy:
check-keys: false
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# download swarm jar
#
FROM alpine:3 as downloader
FROM alpine:3 AS downloader

ARG JSWARM_VERSION=3.46
ARG JSWARM_JAR_NAME=swarm-client-${JSWARM_VERSION}.jar
Expand All @@ -19,7 +19,7 @@ RUN curl -sSLo /${JMXEX_JAR_NAME} ${JMXEX_URL}
#
# pkg base
#
FROM alpine:3 as pkg_base
FROM alpine:3 AS pkg_base

RUN apk add --no-cache --upgrade openjdk21 bash git docker make

Expand Down
11 changes: 0 additions & 11 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Usage
---

```sh
docker run -ti lsstsqre/jenkins-swarm-client
docker run -ti ghcr.io/lsst-dm/jenkins-swarm-client
```
28 changes: 0 additions & 28 deletions tests/hadolint.sh

This file was deleted.

31 changes: 0 additions & 31 deletions tests/make.sh

This file was deleted.

26 changes: 0 additions & 26 deletions tests/mdl.sh

This file was deleted.

26 changes: 0 additions & 26 deletions tests/shellcheck.sh

This file was deleted.

38 changes: 0 additions & 38 deletions tests/yamllint.sh

This file was deleted.

0 comments on commit 3635c34

Please sign in to comment.