Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit ee982af

Browse files
committed
Stop installing custom Docker version
GitHub Actions workers have Docker preinstalled, so there is no need to fetch and install a custom installation of Docker. Additionally, there were some issues with parsing out the image properties such as repository name, image name and image tag. Those are all now solved. The Test Run workflow will also check to ensure the action outputs an image URL. Thanks to my good friend Stephen Edwards for helping me with this one. .github/workflows/test.yml | 10 +- action.yml | 4 - dist/index.js | 3907 +----------------------------------- index.js | 46 +- package-lock.json | 58 +- package.json | 4 +- 6 files changed, 122 insertions(+), 3907 deletions(-)
1 parent 587762c commit ee982af

6 files changed

Lines changed: 122 additions & 3907 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
name: "Test Run"
2-
on:
3-
pull_request:
4-
push:
5-
branches:
6-
- master
7-
- 'releases/*'
2+
on: push
83
jobs:
94
test:
105
runs-on: ubuntu-latest
116
steps:
127
- name: Checkout Repository
138
uses: actions/checkout@v1
149
- name: Run the Action
10+
id: run-action
1511
uses: ./
1612
with:
1713
username: matootie
1814
personalAccessToken: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15+
- name: Test output
16+
run: echo ${{ steps.run-action.outputs.imageURL }}

action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: 'GitHub Docker'
22
description: 'Build and publish your repository as a Docker image and push it to GitHub Package Registry in one step'
33
inputs:
4-
dockerVersion:
5-
description: 'Specific version of Docker to use. Defaults to 19.03.4.'
6-
required: false
7-
default: '19.03.4'
84
username:
95
description: 'GitHub user to publish the image on behalf of.'
106
required: true

0 commit comments

Comments
 (0)