Skip to content

Commit

Permalink
test: github actions OVH
Browse files Browse the repository at this point in the history
  • Loading branch information
FlawaCLV committed Nov 23, 2023
1 parent b16525a commit 04afa43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/actions/docker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@ runs:
password: ${{ inputs.password }}
registry: ${{ inputs.registry }}

# ${{ steps.date.outputs.date }}-${{ steps.commit.outputs.short }}

- name: Build the Docker image
shell: bash
run: docker build -t ${{ inputs.registry }}/${{ inputs.image_name }}:1.0.0 -t ${{ inputs.registry }}/${{ inputs.image_name }}:${{ inputs.image_tag_stable }} -f ${{ inputs.dockerfile_path }} .
run: docker build -t ${{ inputs.registry }}/${{ inputs.image_name }}:${{ steps.date.outputs.date }}-${{ steps.commit.outputs.short }} -t ${{ inputs.registry }}/${{ inputs.image_name }}:${{ inputs.image_tag_stable }} -f ${{ inputs.dockerfile_path }} .

- name: Push the Docker Image
shell: bash
run: |
docker push ${{ inputs.registry }}/${{ inputs.image_name }}:1.0.0
docker push ${{ inputs.registry }}/${{ inputs.image_name }}:${{ steps.date.outputs.date }}-${{ steps.commit.outputs.short }}
docker push ${{ inputs.registry }}/${{ inputs.image_name }}:${{ inputs.image_tag_stable }}
2 changes: 1 addition & 1 deletion api/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const validateCustomHeader = require("./middlewares/validateCustomHeader");

app.get("/", async (req, res) => {
const d = new Date();
res.status(200).send("SNU OVH Registry v6" + d.toLocaleString());
res.status(200).send("SNU OVH Registry v7" + d.toLocaleString());
});

app.get("/testsentry", async (req, res) => {
Expand Down

0 comments on commit 04afa43

Please sign in to comment.