Skip to content

Commit

Permalink
try: release 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 28, 2022
1 parent bc68f3a commit cc7ea8c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 28 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build
run: docker build --target=build -t filesfinder-build .
- name: Tag
run: |
echo 'DOCKER_TAG<<EOF' >> $GITHUB_ENV
echo $(echo ${{ github.ref }} | grep -oP '(?<=refs/tags/v).*') >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKERHUB_ACCESSTOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Push to Docker Hub
run: |
docker buildx build --push \
--tag $DOCKERHUB_REPOSITORY:$DOCKER_TAG \
--tag $DOCKERHUB_REPOSITORY:latest \
--platform linux/amd64,linux/arm64 .
env:
DOCKERHUB_REPOSITORY: jeertmans/filesfinder
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: jeertmans/filesfinder:latest
8 changes: 3 additions & 5 deletions .github/workflows/check_action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Check own GitHub action
on:
workflow_run:
workflows: ["Publish"]
types:
- completed
push:
workflow_dispatch:

jobs:
check_action:
Expand All @@ -19,7 +17,7 @@ jobs:
- run: cargo install --path .
- id: expected
run: echo "::set-output name=files::$(ff '*.rs' '*.toml' | sort | paste -sd ' ')"
- uses: jeertmans/[email protected].3
- uses: jeertmans/[email protected].4
id: ff
with:
args: "*.rs *.toml"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "filesfinder"
version = "0.3.3"
version = "0.3.4"
authors = ["Jérome Eertmans <[email protected]>"]
edition = "2021"
description = "Find files within current directory that match given patterns, while respecting gitignore rules."
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Container image that runs your code
FROM jeertmans/filesfinder:0.3.3
FROM jeertmans/filesfinder:latest

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ A major application to `FF` is to be used within repositories. Therefore, you ca
# Default: ${{ github.repository }}
repository: ''
- name: Find files matching "*.rs" or "*.md"
uses: jeertmans/[email protected].3
uses: jeertmans/[email protected].4
id: ff # Any id, to be used later to reference to files output
with:
# Only argument, a single string, to be passed as arguments to ff.
Expand Down

0 comments on commit cc7ea8c

Please sign in to comment.