Explorar el Código

ci: Update action versions in nightly build workflow

Versions are updated for various actions that have a new version which
uses NodeJS 16.

One action has no updated version available yet:
`e1himself/goss-installation-action`
But an issue exists mentioning that it needs an update.
pull/1430/head
Florian Zschocke hace 1 año
padre
commit
b9cf503e78
Se han modificado 1 ficheros con 11 adiciones y 10 borrados
  1. 11
    10
      .github/workflows/nightly-build.yml

+ 11
- 10
.github/workflows/nightly-build.yml Ver fichero

steps: steps:


- name: Cache marker for latest commit - name: Cache marker for latest commit
uses: actions/cache@v2
uses: actions/cache@v3
id: cache-sha id: cache-sha
with: with:
key: sha-${{ github.sha }} key: sha-${{ github.sha }}
steps: steps:


- name: Checkout Gitblit - name: Checkout Gitblit
uses: actions/checkout@v1
uses: actions/checkout@v3
with: with:
submodules: true submodules: true


- name: Setup Java 8 - name: Setup Java 8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with: with:
java-version: 8 java-version: 8
distribution: 'temurin'


- name: Report Java version - name: Report Java version
run: | run: |


- name: Save built Gitblit package - name: Save built Gitblit package
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }} if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with: with:
name: gitblit-nightly name: gitblit-nightly
path: build/target/gitblit-*-SNAPSHOT.tar.gz path: build/target/gitblit-*-SNAPSHOT.tar.gz


steps: steps:
- name: Checkout gitblit-docker - name: Checkout gitblit-docker
uses: actions/checkout@v1
uses: actions/checkout@v3
with: with:
repository: ${{ env.GH_ORG }}/gitblit-docker repository: ${{ env.GH_ORG }}/gitblit-docker
ref: master ref: master
fetch-depth: 2 fetch-depth: 2


- name: Download Gitblit nightly build - name: Download Gitblit nightly build
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
id: get-gb id: get-gb
with: with:
name: gitblit-nightly name: gitblit-nightly
path: ../gitblit-docker path: ../gitblit-docker


# Delete the artifact unless this is the official Gitblit repo # Delete the artifact unless this is the official Gitblit repo
- uses: geekyeggo/delete-artifact@v1
- uses: geekyeggo/delete-artifact@v2
if: ${{ github.repository != 'gitblit/gitblit' }} if: ${{ github.repository != 'gitblit/gitblit' }}
with: with:
name: gitblit-nightly name: gitblit-nightly
echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}" echo "BUILD_DATE=$(date +%Y-%m-%dT%H:%M:%S)" >> "${GITHUB_ENV}"


- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_GB_USER }} username: ${{ secrets.DOCKERHUB_GB_USER }}
password: ${{ secrets.DOCKERHUB_GB_TOKEN }} password: ${{ secrets.DOCKERHUB_GB_TOKEN }}


- name: Build snapshot docker image - name: Build snapshot docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with: with:
file: ../gitblit-docker/generate/Dockerfile file: ../gitblit-docker/generate/Dockerfile
context: ../gitblit-docker context: ../gitblit-docker
dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly dgoss run -p 8080:8080 -p 8443:8443 --tmpfs /var/opt/gitblit/temp gitblit/gitblit:nightly


- name: Push docker image to registry - name: Push docker image to registry
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with: with:
file: ../gitblit-docker/generate/Dockerfile file: ../gitblit-docker/generate/Dockerfile
context: ../gitblit-docker context: ../gitblit-docker

Cargando…
Cancelar
Guardar