test date out puts-1
This commit is contained in:
91
.github/workflows/build-push-docker.yml
vendored
91
.github/workflows/build-push-docker.yml
vendored
@@ -61,17 +61,45 @@ jobs:
|
|||||||
logout: true
|
logout: true
|
||||||
|
|
||||||
|
|
||||||
- name: Build My Base Image
|
- name: calculate-dates-and-times
|
||||||
uses: docker/build-push-action@v3.2.0
|
# You may pin to the exact commit or the version.
|
||||||
|
# uses: lee-dohm/calculate-dates-and-times@598e2d8253f20d161824d8dd0c1fabc0dd1c975e
|
||||||
|
id: time_id
|
||||||
|
uses: lee-dohm/calculate-dates-and-times@v1.0.2
|
||||||
with:
|
with:
|
||||||
context: ./
|
# A format string correspending to the format function of moment.js
|
||||||
# Path to the Dockerfile
|
format: YYYY-MM-DD-HH-mm
|
||||||
file: ./localEnvironment/src/main/java/io/wdd/localenviroment/build-my-own-base-image.dockerfile
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
|
||||||
tags: icederce/eclipse-temurin-11-jre-focal:2022-11-22
|
|
||||||
|
|
||||||
# - name: Build Maven
|
|
||||||
|
- name: Docker Tags GENERATE Uniformly
|
||||||
|
id: docker_meta_id # you'll use this in the next step
|
||||||
|
uses: docker/metadata-action@v4.1.1
|
||||||
|
with:
|
||||||
|
# list of Docker images to use as base name for tags
|
||||||
|
images: |
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/eclipse-temurin-11-jre-focal
|
||||||
|
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/eclipse-temurin-11-jre-focal
|
||||||
|
# Docker tags based on the following events/attributes
|
||||||
|
tags: |
|
||||||
|
latest
|
||||||
|
"${{ steps.time_id.outputs }}"
|
||||||
|
|
||||||
|
- name: Test outpust
|
||||||
|
run: |
|
||||||
|
echo ${{ steps.time_id.outputs }}
|
||||||
|
|
||||||
|
|
||||||
|
# - name: Build My Base Image
|
||||||
|
# uses: docker/build-push-action@v3.2.0
|
||||||
|
# with:
|
||||||
|
# context: ./
|
||||||
|
# # Path to the Dockerfile
|
||||||
|
# file: ./localEnvironment/src/main/java/io/wdd/localenviroment/build-my-own-base-image.dockerfile
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
# push: true
|
||||||
|
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/eclipse-temurin-11-jre-focal:2022-11-22
|
||||||
|
#
|
||||||
|
# - name: Maven package project
|
||||||
# run: |
|
# run: |
|
||||||
# mvn -B -DskipTests=true package --file pom.xml
|
# mvn -B -DskipTests=true package --file pom.xml
|
||||||
# ls
|
# ls
|
||||||
@@ -89,32 +117,37 @@ jobs:
|
|||||||
# cat /proc/cpuinfo
|
# cat /proc/cpuinfo
|
||||||
# echo "--------------------------------------"
|
# echo "--------------------------------------"
|
||||||
#
|
#
|
||||||
# - name: Build and push Docker images
|
# - name: Build and push Docker images - [ Server ]
|
||||||
|
# id: docker_build_server
|
||||||
# # You may pin to the exact commit or the version.
|
# # You may pin to the exact commit or the version.
|
||||||
# # uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
|
# # uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
|
||||||
# uses: docker/build-push-action@v3.2.0
|
# uses: docker/build-push-action@v3.2.0
|
||||||
# with:
|
# with:
|
||||||
# context: # optional
|
# context: ./
|
||||||
# # Path to the Dockerfile
|
# # Path to the Dockerfile
|
||||||
# file: # optional
|
# file: ./server/Dockerfile
|
||||||
# # List of metadata for an image
|
|
||||||
# labels: # optional
|
|
||||||
# # Load is a shorthand for --output=type=docker
|
|
||||||
# load: # optional, default is false
|
|
||||||
# # Set the networking mode for the RUN instructions during build
|
|
||||||
# network: # optional
|
|
||||||
# # Do not use cache when building the image
|
|
||||||
# no-cache: # optional, default is false
|
|
||||||
# # Do not cache specified stages
|
|
||||||
# no-cache-filters: # optional
|
|
||||||
# # List of output destinations (format: type=local,dest=path)
|
|
||||||
# outputs: # optional
|
|
||||||
# # List of target platforms for build
|
# # List of target platforms for build
|
||||||
# platforms: linux/amd64,,linux/arm64
|
# platforms: linux/amd64,linux/arm64
|
||||||
# # Always attempt to pull all referenced images
|
# # Always attempt to pull all referenced images
|
||||||
# pull: # optional, default is false
|
# pull: false
|
||||||
# # Push is a shorthand for --output=type=registry
|
# # Push is a shorthand for --output=type=registry
|
||||||
# push: # optional, default is false
|
# push: true
|
||||||
|
# tags:
|
||||||
|
#
|
||||||
|
# - name: Build and push Docker images - [ Agent ]
|
||||||
|
# id: docker_build_agent
|
||||||
|
# # You may pin to the exact commit or the version.
|
||||||
|
# # uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
|
||||||
|
# uses: docker/build-push-action@v3.2.0
|
||||||
|
# with:
|
||||||
|
# context: ./
|
||||||
|
# # Path to the Dockerfile
|
||||||
|
# file: ./agent/Dockerfile
|
||||||
|
# # List of target platforms for build
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
# # Always attempt to pull all referenced images
|
||||||
|
# pull: false
|
||||||
|
# # Push is a shorthand for --output=type=registry
|
||||||
|
# push: true
|
||||||
|
# tags:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user