test date out puts-1

This commit is contained in:
zeaslity
2022-11-22 17:25:15 +08:00
parent 13fe53d8e1
commit fed1e1e9fd

View File

@@ -61,17 +61,45 @@ jobs:
logout: true
- name: Build My Base Image
uses: docker/build-push-action@v3.2.0
- name: calculate-dates-and-times
# 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:
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: icederce/eclipse-temurin-11-jre-focal:2022-11-22
# A format string correspending to the format function of moment.js
format: YYYY-MM-DD-HH-mm
# - 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: |
# mvn -B -DskipTests=true package --file pom.xml
# ls
@@ -89,32 +117,37 @@ jobs:
# cat /proc/cpuinfo
# 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.
# # uses: docker/build-push-action@c56af957549030174b10d6867f20e78cfd7debc5
# uses: docker/build-push-action@v3.2.0
# with:
# context: # optional
# context: ./
# # Path to the Dockerfile
# file: # optional
# # 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
# file: ./server/Dockerfile
# # List of target platforms for build
# platforms: linux/amd64,,linux/arm64
# platforms: linux/amd64,linux/arm64
# # Always attempt to pull all referenced images
# pull: # optional, default is false
# pull: false
# # 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: