Bump lucacome/draft-release from 0.1.1 to 0.2.1 (#33) #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- v1 | |
pull_request: | |
env: | |
DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG }} | |
jobs: | |
test1: | |
name: Test Update Needed | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: library/nginx:1.21.0 | |
image: nginx/nginx-ingress:2.1.0 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "true" ]]; then | |
exit 1 | |
fi | |
test2: | |
name: Test Update Not Needed | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: nginx:1.21.0 | |
image: library/nginx:1.21.0 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "false" ]]; then | |
exit 1 | |
fi | |
test3: | |
name: Test Update Needed on ARM64 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: nginx:1.21.0 | |
image: nginx/nginx-ingress:2.1.0 | |
platforms: linux/arm64 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "true" ]]; then | |
exit 1 | |
fi | |
test4: | |
name: Test Update Needed on multiple platforms | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: nginx:1.21.0 | |
image: nginx/nginx-ingress:2.1.0 | |
platforms: linux/arm64,linux/amd64 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "true" ]]; then | |
exit 1 | |
fi | |
test5: | |
name: Test Update Not Needed on multiple platforms | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: nginx:1.21.0 | |
image: library/nginx:1.21.0 | |
platforms: linux/arm64,linux/amd64 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "false" ]]; then | |
exit 1 | |
fi | |
test6: | |
name: Test single platform | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Test Action | |
id: test | |
uses: ./ | |
with: | |
base-image: alpine:latest | |
image: lucacome/alpine-amd64 | |
- name: Get Test Output | |
run: echo "Workflow Docker Image ${{ steps.test.outputs.needs-updating }}" | |
- name: Check value | |
run: | | |
if [[ "${{ steps.test.outputs.needs-updating }}" != "false" ]]; then | |
exit 1 | |
fi |