Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 16, 2023
1 parent 6ae6eda commit f88953e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: ci.sh
run: docker run -e CI -w /root/loksh -v `pwd`:/root/loksh ghcr.io/dimkr/loksh/ci-container:latest ./ci.sh
- name: Cleanup
Expand All @@ -31,21 +31,8 @@ jobs:
- name: Create release
if: github.event_name == 'workflow_dispatch'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
name: ${{ github.event.inputs.tag }}
tag_name: ${{ github.event.inputs.tag }}
release_name: ${{ github.event.inputs.tag }}
draft: false
prerelease: false
- name: Upload source tarball
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: loksh-${{ github.event.inputs.tag }}.tar.xz
asset_name: loksh-${{ github.event.inputs.tag }}.tar.xz
asset_content_type: application/octet-stream
files: loksh-${{ github.event.inputs.tag }}.tar.xz
8 changes: 4 additions & 4 deletions .github/workflows/ci-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ on:

jobs:
latest:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ github.repository }}/ci-container:${{ github.job }}

0 comments on commit f88953e

Please sign in to comment.