Skip to content

Commit

Permalink
Issue 132/upgrade GitHub actions (#133)
Browse files Browse the repository at this point in the history
* updgrade actions for rdock

* upgrade actions for rdock-utils

* fix artifacts upload and release
  • Loading branch information
ggutierrez-sunbright authored Sep 27, 2024
1 parent 57b6db3 commit c59be78
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build base image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
tags: rdock-${{ inputs.distribution }}:base
Expand Down Expand Up @@ -51,6 +51,7 @@ jobs:
bin/ lib/ include/ data/ scripts/ Makefile license.txt README.md
- name: Upload bundle
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: rdock-${{ inputs.compiler }}-${{ inputs.distribution }}-${{ inputs.arch }}
path: rdock-${{ steps.set_candidate_name.outputs.CANDIDATE_NAME }}.tar.gz
10 changes: 6 additions & 4 deletions .github/workflows/build_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
check-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup-lint
run: |
sudo apt-get update
Expand Down Expand Up @@ -46,11 +46,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3 # probably not needed, but just in case
- uses: actions/checkout@v4 # probably not needed, but just in case
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts/
pattern: rdock-*
merge-multiple: true

- name: Set version
id: set_version
Expand All @@ -60,6 +62,6 @@ jobs:
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.set_version.outputs.RELEASE_VERSION }}
artifacts: artifacts/*/*.tar.gz
artifacts: artifacts/*.tar.gz
draft: true

8 changes: 4 additions & 4 deletions .github/workflows/rdock-utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: lint
uses: chartboost/ruff-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

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

- name: Build rdock-utils dev image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./rdock-utils
tags: ghcr.io/cbdd/rdock-utils:dev
Expand Down

0 comments on commit c59be78

Please sign in to comment.