Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeux committed Mar 17, 2023
1 parent 56759c8 commit ea96e67
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,22 @@ name: learn-github-actions
run-name: ${{ github.actor }} is learning Github Actions
on: [push]
jobs:
setup-job:
name: Checkout repo
build-docker-image:
name: Build and push docker image
runs-on: ubuntu-latest
outputs:
application_name: ${{ steps.set-env.outputs.appname }}
steps:
- name: Code checkout
uses: actions/checkout@v3

- name: Set env
id: set-env
run: |
echo "appname=$APP_NAME" >> $GITHUB_OUTPUT
build-docker-image:
name: Build and push docker image
needs: [setup-job]
runs-on: ubuntu-latest
steps:
- name: Build image
run: |
pwd
cd ..
ls -alh
docker build -f ../Dockerfile --tag webapplication2 .
pacttest-uploader:
runs-on: ubuntu-latest
needs: [setup-job, build-docker-image]
needs: [build-docker-image]
steps:
- name: Prepare python
uses: actions/setup-python@v4.5.0
Expand Down

0 comments on commit ea96e67

Please sign in to comment.