Skip to content

Commit

Permalink
Add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubknejzlik committed May 2, 2023
1 parent b77244a commit f26c71e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and Deploy
on: [push]
jobs:
Build-And-Deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.15.6
- name: Build
run: |
make build tag push
1 change: 1 addition & 0 deletions Dockerfile.docker-compose
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM alpine:3.5

# https://serverfault.com/questions/772227/chmod-not-working-correctly-in-docker
RUN apk add --update docker py-pip python-dev libffi-dev openssl-dev gcc libc-dev make ca-certificates
RUN pip install --upgrade pip
RUN pip install docker-compose

COPY bin/devops-alpine /usr/local/bin/devops
Expand Down
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ OWNER=novacloud
IMAGE_NAME=devops
QNAME=$(OWNER)/$(IMAGE_NAME)

GIT_TAG=$(QNAME):$(TRAVIS_COMMIT)
BUILD_TAG=$(QNAME):0.1.$(TRAVIS_BUILD_NUMBER)
GIT_TAG=$(QNAME):$(GITHUB_SHA)
BUILD_TAG=$(QNAME):0.1.$(GITHUB_RUN_NUMBER)
LATEST_TAG=$(QNAME):latest

lint:
Expand Down

0 comments on commit f26c71e

Please sign in to comment.