diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0c15c7d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Action CI + +on: [push] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Build Docker image + run: docker build . --tag my-image-name:$(date +%s) + - name: Verify action syntax + # The action should not publish any real changes, but should succeed. + uses: './' + with: + github_token: '${{ secrets.GITHUB_TOKEN }}' + branch: '${{ github.ref }}' \ No newline at end of file diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml deleted file mode 100644 index 1514588..0000000 --- a/.github/workflows/dockerimage.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Docker Image CI - -on: [push] - -jobs: - - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)