mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Upgrade dockerize to 0.7.0 (#110)
* update dockerize docker instructions * login to docker hub using action
This commit is contained in:
parent
c217d30c39
commit
4be928f6d0
2 changed files with 9 additions and 6 deletions
5
.github/workflows/image.yml
vendored
5
.github/workflows/image.yml
vendored
|
@ -32,7 +32,10 @@ jobs:
|
||||||
id: docker-tag
|
id: docker-tag
|
||||||
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
|
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build multiarch image
|
- name: Build multiarch image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build --push \
|
docker buildx build --push \
|
||||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,16 +1,16 @@
|
||||||
FROM golang:1.15.8-alpine3.12 AS binary
|
FROM golang:1.20.4-alpine3.18 AS binary
|
||||||
RUN apk -U add openssl git
|
RUN apk -U add openssl git
|
||||||
|
|
||||||
ARG DOCKERIZE_VERSION=v0.6.1
|
ARG DOCKERIZE_VERSION=v0.7.0
|
||||||
WORKDIR /go/src/github.com/jwilder
|
WORKDIR /go/src/github.com/jwilder
|
||||||
RUN git clone https://github.com/jwilder/dockerize.git && \
|
RUN git clone https://github.com/jwilder/dockerize.git && \
|
||||||
cd dockerize && \
|
cd dockerize && \
|
||||||
git checkout ${DOCKERIZE_VERSION}
|
git checkout ${DOCKERIZE_VERSION}
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/jwilder/dockerize
|
WORKDIR /go/src/github.com/jwilder/dockerize
|
||||||
RUN go get github.com/robfig/glock
|
ENV GO111MODULE=on
|
||||||
RUN glock sync -n < GLOCKFILE
|
RUN go mod tidy
|
||||||
RUN go install
|
RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o /go/bin/dockerize .
|
||||||
|
|
||||||
FROM alpine:3.18.3
|
FROM alpine:3.18.3
|
||||||
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
LABEL maintainer "Fco. Javier Delgado del Hoyo <frandelhoyo@gmail.com>"
|
||||||
|
|
Loading…
Reference in a new issue