Skip to content

Commit

Permalink
DEVOPS-2662 Update GitHub actions (#101)
Browse files Browse the repository at this point in the history
* Disable push to registry DEVOPS-2662

* Use actions/checkout v4 DEVOPS-2662

* Use s4u/maven-settings-action v3 DEVOPS-2662

* Use s4u/maven-settings-action v3.0.0 DEVOPS-2662

* Use docker/login-action v3 DEVOPS-2662

* Use docker/metadata-action v5 DEVOPS-2662

* Use docker/build-push-action v5 DEVOPS-2662

* Enable push to registry DEVOPS-2662
  • Loading branch information
dcrossleyau authored Feb 16, 2024
1 parent 0f743e7 commit 8dff491
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Create Maven settings
uses: s4u/maven-settings-action@v2.8.0
uses: s4u/maven-settings-action@v3.0.0
with:
mirrors: |
[
Expand All @@ -46,14 +46,14 @@ jobs:
- name: Do Maven build harvester
run: mvn verify
- name: Log into GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.CONTAINER_REGISTRY }}
username: ${{ github.ACTOR }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract docker metadata for harvester
id: meta-1
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME_1 }}
labels: |
Expand All @@ -63,23 +63,23 @@ jobs:
org.opencontainers.image.documentation=https://github.com/indexdata/localindices/tree/master/doc
- name: Extract docker metadata for harvester-admin
id: meta-2
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.CONTAINER_REGISTRY }}/${{ env.IMAGE_NAME_2 }}
labels: |
org.opencontainers.image.title=Harvester Admin
org.opencontainers.image.description=Harvester administrative user interface
org.opencontainers.image.vendor=Index Data LLC
- name: Build and publish Docker for harvester
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
target: harvester
target: harvester
tags: ${{ steps.meta-1.outputs.tags }}
labels: ${{ steps.meta-1.outputs.labels }}
- name: Build and publish Docker for harvester-admin
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
push: true
Expand Down

0 comments on commit 8dff491

Please sign in to comment.