Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
debug: docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sysatom committed May 28, 2021
1 parent ddd02e3 commit 35fb642
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Debug info
run: ls ./dist && ls ./dist/cron-linux-amd64
run: ls -all ./dist

- name: Build and push cron
uses: docker/build-push-action@v2
with:
context: .
push: true
file: build/cron/Dockerfile
tags: ${{ secrets.DOCKERHUB_USERNAME }}/cron:${{ github.sha }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/cron:latest
${{ secrets.DOCKERHUB_USERNAME }}/cron:${{ github.sha }}
- name: Build and push gateway
uses: docker/build-push-action@v2
Expand Down
2 changes: 1 addition & 1 deletion build/cron/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM alpine:latest

RUN apk update && apk add bash

COPY ./dist/cron-linux-amd64/cron app
COPY ./dist/cron-linux-amd64 app
CMD ["./app"]

0 comments on commit 35fb642

Please sign in to comment.