Skip to content

Commit

Permalink
ci: Update workflows (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
peimanja authored Feb 18, 2024
1 parent d415a23 commit df29fab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@ jobs:
if_false: "canary"

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: "${{ secrets.DOCKERHUB_USERNAME }}"
password: "${{ secrets.DOCKERHUB_TOKEN }}"

- name: Docker meta Docker Hub
id: meta-dockerhub
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: peimanja/artifactory_exporter
tags: |
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Docker meta GitHub
id: meta-github
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: "ghcr.io/${{ github.event.repository.owner.login }}/${{ github.event.repository.name }}"
tags: |
Expand All @@ -77,17 +77,17 @@ jobs:
latest=true
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

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

- name: Get date
id: date
run: echo "value=$(date +%FT%TZ)" >> "${GITHUB_OUTPUT}"

- name: Build/Push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
- goarch: "386"
goos: darwin
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name || github.event.inputs.tag }}

- name: Get date
id: date
run: echo "value=$(date +%FT%TZ)" >> "${GITHUB_OUTPUT}"

- uses: wangyoucao577/go-release-action@master
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: 1.21
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v7
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
days-before-stale: 30
days-before-close: 5
exempt-pr-labels: 'keep-open'
exempt-issue-labels: 'keep-open'

0 comments on commit df29fab

Please sign in to comment.