Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump the actions group with 7 updates #267

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
asv machine --yes
# https://github.com/tqdm/tqdm/blob/4c956c20b83be4312460fc0c4812eeb3fef5e7df/.github/workflows/check.yml#L26
- name: Restore previous results
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .asv
key: asv-${{ runner.os }}
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
if: always()
run: cp benchmarks/README_CI.md benchmarks.log .asv/results/

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: asv-benchmark-results-${{ runner.os }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/test-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup environment
uses: mamba-org/setup-micromamba@v1
with:
Expand Down Expand Up @@ -63,13 +63,16 @@ jobs:
dockerize: # Based on Mintpy: https://github.com/insarlab/MintPy/blob/5ca554fef324b816f9130feec567e2cf463e41d2/.github/workflows/build-n-publish-to-pypi.yml
name: Build Docker image and push to GitHub Container Registry
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set environment variables for docker build
Expand All @@ -81,14 +84,14 @@ jobs:
echo "DOLPHIN_VERSION=${sanitized_version}" >> $GITHUB_ENV

- 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, tag, and push image to Github Container Registry
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/Dockerfile
Expand All @@ -102,14 +105,14 @@ jobs:

- name: Add develop tag
if: github.ref == 'refs/heads/main'
uses: akhilerm/tag-push-action@v2.1.0
uses: akhilerm/tag-push-action@v2.2.0
with:
src: ghcr.io/${{ github.repository }}:${{ env.DOLPHIN_VERSION }}
dst: ghcr.io/${{ github.repository }}:develop

- name: Add latest tag
if: startsWith(github.ref, 'refs/tags/v')
uses: akhilerm/tag-push-action@v2.1.0
uses: akhilerm/tag-push-action@v2.2.0
with:
src: ghcr.io/${{ github.repository }}:${{ env.DOLPHIN_VERSION }}
dst: ghcr.io/${{ github.repository }}:latest