-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove publish of latest image to ghcr (#783)
* Remove publish of latest image to ghcr * Bump ruby in version bump job
- Loading branch information
Showing
2 changed files
with
5 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,8 @@ name: Release | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
paths: | ||
- lib/**/* | ||
- exe/allure-report-publisher | ||
- allure-report-publisher.gemspec | ||
- Dockerfile | ||
- Gemfile.lock | ||
|
||
jobs: | ||
docker: | ||
|
@@ -25,30 +17,15 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Login to DockerHub | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/[email protected] | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Set images | ||
id: images | ||
run: | | ||
if [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "true" ]]; then | ||
echo "IMAGES=andrcuns/allure-report-publisher,ghcr.io/andrcuns/allure-report-publisher" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "IMAGES=ghcr.io/andrcuns/allure-report-publisher" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Docker tags | ||
id: tags | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ steps.images.outputs.IMAGES }} | ||
images: andrcuns/allure-report-publisher | ||
flavor: latest=false | ||
tags: | | ||
type=raw,value=latest | ||
|
@@ -66,14 +43,13 @@ jobs: | |
gem: | ||
name: Ruby gem | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Set up Ruby 3.2 | ||
- name: Set up Ruby 3.3 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
ruby-version: 3.3 | ||
bundler-cache: true | ||
- name: Build and push | ||
run: bundle exec rake release | ||
|
@@ -83,7 +59,6 @@ jobs: | |
gh-release: | ||
name: Github release | ||
runs-on: ubuntu-22.04 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
permissions: | ||
contents: write | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters