Skip to content

Commit 2a0fb15

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Gihub Actions] splitted in two jobs.
1 parent 4f04017 commit 2a0fb15

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on: # yamllint disable-line rule:truthy
99
branches: ["main"]
1010

1111
env:
12-
IMAGE_NAME: ${{ env.IMAGE_NAME }}
12+
IMAGE_NAME: algorithm-exercises-js
1313

1414
jobs:
1515

@@ -20,11 +20,14 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
23-
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v3
2425
- name: Build and push
2526
uses: docker/build-push-action@v6
2627
with:
2728
context: .
29+
outputs: |
30+
type=docker,dest=/tmp/${{ env.IMAGE_NAME }}_${{ github.sha }}.tar
2831
tags: |
2932
${{ env.IMAGE_NAME }}:latest
3033
${{ env.IMAGE_NAME }}:${{ github.sha }}
@@ -34,13 +37,14 @@ jobs:
3437
with:
3538
name: ${{ env.IMAGE_NAME }}:${{ github.sha }}
3639
path: /tmp/${{ env.IMAGE_NAME }}_${{ github.sha }}.tar
37-
40+
# yamllint disable rule:comments-indentation
3841
# - name: Lint in Docker image
3942
# run: make compose/lint
4043
# - name: Test in Docker image
4144
# run: make compose/test
4245
# - name: Run in Docker image
4346
# run: make compose/run
47+
# yamllint enable rule:comments-indentation
4448

4549
scan:
4650
name: "Snyk Container"

0 commit comments

Comments
 (0)